Node.js
Commands
Search:
| Designation 🔼 | command | parameter | description | 
|---|---|---|---|
| console function | add = function (a, b) {return a+b;} add(4,5) | ||
| file execute | node .\server.js | ||
| initialize project | npm init | -y | skip author info | 
| install dependencies | npm i [packageName] | -g | install global | 
| list installed packages | npm list | -g --depth 0 | |
| list outdated packages | npm outdated -g --depth=0 | ||
| remove node_modules directory | npm rm -rf node_modules | ||
| restart package | npm restart | ||
| run script | npm run [scriptName] | ||
| start on port | npm start -- --port 8000 | ||
| start package | npm start | ||
| uninstall package | npm uninstall [packageName] | ||
| update package | npm update | ||
| update, install npm | npm i npm@latest - g | ||
| version check node | node -v | ||
| version check npm | npm -v | ||
| vulnerabilities check | npm audit | ||
| vulnerabilities fix | npm audit -fix | ||
| vulnerabilities override | "overrides": { "glob-parent": "6.0.2", "got": "12.6.0", "trim": "1.0.1" } | package.json | |
| vulnerabilities update | npm update | 
Packages
Search:
| Name 🔼 | command | Category | 
|---|---|---|
| docusaurus | npm i docusaurus | docusaurus | 
| react-table | npm i react-table | react |