Use Lucide in Node.js
You can also import Lucide icons in Node.js projects, with the lucide-static package. Each icon is exported as a string containing the SVG markup, which can be used in server-side rendering or static site generation.
js
import {MessageSquare} from 'lucide-static';js
const {MessageSquare} = require('lucide-static');Note: Each icon name is in PascalCase. You can find the icon names in the Lucide Icons page.