### config
```shell
# default values when npm init -y
npm config set init.author.name "your name"
npm config set init.author.email "name@mail.com"
```
### add package
```shell
# install from npm repos
npm i <package>
npm i -D <package> #Dev
npm i -G <package> #Global
# install from git base
npm i https://github.com/username/repo.git
npm i github:username/repo
npm i bitbucket:username/repo
npm i gitlab:username/repo
```
### link package
```shell
# symlink mypackage into myproject
cd mypackage
npm link
cd ../myproject
npm link mypackage
```
### execution
```shell
# run scripts in sequence prestart, start, poststart
npm start
# run scripts in sequence pretest, test, posttest
npm test
npm t
# download, execute, forget
npx create-react-app my-new-project
```
### list package
```shell
npm list
npm list --deptp=0 # only show first level
npm list --deptp=0 -g # global
# navigate in browser
npm repo <package>
npm home <package>
npm docs <package>
```
### cleanup
```shell
# check outdate status
npm outdated
# de-duplicate
npm dedupe
npm ddp
```