auto-requirements

Autoreq is a command line utility that allows to parse js files in current directory to find used packages and install them or uninstall unused ones.

Stats

StarsIssuesVersionUpdatedCreatedSize
auto-requirements
001.2.23 years ago4 years agoMinified + gzip package size for auto-requirements in KB

Readme

auto-requirements

NPM version

Autoreq is a command line utility that allows to parse js files in current directory to find used packages and install them or uninstall unused ones.

It will ignore js files in node_modules folder.

auto-requirements self execution example

Install

You can install it by npm:

npm install -g auto-requirements

Usage

To scan current directory and installing all found packages and uninstall unused dependencies execute this in command line:

autoreq --install --uninstall

Aliases:

  • autoreq
  • a_r
  • auto_requirements

Params

--install

Execute all install commands from summary table. By default without this param it will not execute all install commands.

Install variations:

  • autoreq --install
  • autoreq -i

--uninstall

Execute all uninstall commands from summary table. By default without this param it will not execute all uninstall commands.

Uninstall variations:

  • autoreq --uninstall
  • autoreq -u

--save, --no-save

Use --save/--no-save flag in npm install commands. By default it will save all packages that isn't in package (and --save-dev for devDependencies).

Variations for no-save:

  • autoreq --save=0
  • autoreq --no-save
  • autoreq --no_save

Variations for save:

  • autoreq --save=1
  • autoreq --save

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.