UNPKG

namastejs

Version:

A spiritual greeting from your JavaScript code. Because every function deserves a 'Namaste 🙏'

44 lines (38 loc) 1.55 kB
module.exports = { name: "Node.js", description: "Most-used Node.js & NPM commands for daily backend development", updatedAt: "Jan 2025", learnMore: "https://nodejs.org/en/docs/", categories: { NODE: [ ["node -v", "Check Node.js version"], ["node yourfile.js", "Run a JS file with Node"], ["node --inspect yourfile.js", "Run Node in debug mode"], ["npx create-react-app app-name", "Create a new React app using npx"], ], "NPM PACKAGE MANAGEMENT": [ ["npm init", "Initialize a new Node.js project"], ["npm install package-name", "Install a package locally"], ["npm install -g package-name", "Install a package globally"], ["npm uninstall package-name", "Remove a package"], ["npm update", "Update all packages"], ["npm outdated", "List outdated packages"], ["npm list", "List installed packages"], ], "NPM SCRIPTS": [ ["npm run start", "Run the start script"], ["npm run dev", "Run the dev script (custom)"], ["npm run build", "Build project using build script"], ["npm test", "Run tests defined in package.json"], ], "CACHE & CLEANUP": [ ["npm cache clean --force", "Clean NPM cache"], ["npm prune", "Remove extraneous packages"], ["npm dedupe", "Reduce duplication in node_modules"], ], NPX: [ ["npx package-name", "Run a package without installing globally"], ["npx nodemon yourfile.js", "Run file with nodemon via npx"], ], }, };