npmclean

1.1.1 • Public • Published

npmclean

npm version npm downloads Windows Tests bitHound Overall Score

In development flows some npm 5 new features can be tiresome. With npmclean you could easily:

  • remove package-lock.json only
  • clean all modules, cache and package-lock.json

Installation

npm

$ npm install npmclean -g

Shell usage

Full clean & install all modules

cd my-module
$ npmclean && npm i

Install new modules only

cd my-module
$ npmclean -l && npm i

package.json useful run-scripts

"scripts"{
  ...
  "npmi": "npmclean -l && npm i",
  "clean-install": "npmclean && npm i"
}

CLI options

$ npmclean -h
 
  Usage: npmclean [options]
 
  Options:
 
    -h, --help     output usage information
    -V, --version  output the version number
    -l, --rm-lock  Remove only package-lock.json
    -s, --silent   Silent output console

How full clean environment is performed

$ rm -rf node_modules
$ rm -rf package-lock.json*
$ npm cache clean --force

Contributing

  • Documentation improvement
  • Feel free to send any PR

License

ISC

Dependents (0)

Package Sidebar

Install

npm i npmclean

Weekly Downloads

5

Version

1.1.1

License

ISC

Last publish

Collaborators

  • bysabi