Node Cheat Sheet

Posted : admin On 1/29/2022
Node

Reference covering Blueprint shortcuts and useful actions. Node.js performance. Managing Node.js applications has become increasingly difficult as the environments are more complex than ever. To ensure your end-users have a seamless experience, you need a strategic and comprehensive approach to monitoring the health of your app. Introduction This cheat sheet lists actions developers can take to develop secure Node.js applications. Each item has a brief explanation and solution that is specific to the Node.js environment. The Gatsby team has created a resource that you might find useful when building a Gatsby site: a cheat sheet with all the top commands and development tips! Feel free to download and print yourself a copy (and tape it by your workstation!). For related online information, visit Quick Start and Commands (Gatsby CLI). Get the PDF: gatsby-cheat.

Sheet

Few commands I found very useful during development.

CommandDescription
npm listshow a tree of every package found in the current folder
npm list -gsame as above ^^, but search also in global packages
npm list -g --depth=0same as above ^^, but do not show every package’s dependencies
npm list [package name]show a tree of every instance found in the current folder of that specific package
npm installinstall all packages in package.json
npm install [package name]install a package
npm install [package name] --saveinstall a package as dependency
npm install [package name] --save-devinstall a package as dev dependency
npm uninstall [package name]uninstall a package
npm install --save username/repo#branch-name-or-commit-or-taginstall package from GitHub repository

Alias

Node Commands Cheat Sheet

AliasCommand
npm inpm install
npm i [package name] -Dnpm install [package name] --save-dev

⚡️ Bonus tip

npm-check is a useful tool to check for outdated, incorrect, and unused dependencies

📚 More info

Few commands I found very useful during development.

CommandDescription
npm listshow a tree of every package found in the current folder
npm list -gsame as above ^^, but search also in global packages
npm list -g --depth=0same as above ^^, but do not show every package’s dependencies
npm list [package name]show a tree of every instance found in the current folder of that specific package
npm installinstall all packages in package.json
npm install [package name]install a package
npm install [package name] --saveinstall a package as dependency
npm install [package name] --save-devinstall a package as dev dependency
npm uninstall [package name]uninstall a package
npm install --save username/repo#branch-name-or-commit-or-taginstall package from GitHub repository
Node red cheat sheet

Alias

AliasCommand
npm inpm install
npm i [package name] -Dnpm install [package name] --save-dev

Node Wrangler Cheat Sheet

⚡️ Bonus tip

Cheat

npm-check is a useful tool to check for outdated, incorrect, and unused dependencies

Node Red Cheat Sheet

📚 More info