Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to import npm packages in node.js?

//in cmd prompt: 
//npm i <package-name>

//defining package in code: 
const package = require("package-name")
 
PREVIOUS NEXT
Tagged: #import #npm #packages
ADD COMMENT
Topic
Name
7+5 =