how to use npm to install a library instead of putting the library file into your project code example
Example: how to import npm packages in node.js?
//in cmd prompt:
//npm i <package-name>
//defining package in code:
const package = require("package-name")