November: Procrastination Month

    auto-requirements

    1.2.2 • Public • Published

    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

    Install

    npm i auto-requirements

    DownloadsWeekly Downloads

    2

    Version

    1.2.2

    License

    MIT

    Unpacked Size

    14.1 kB

    Total Files

    9

    Last publish

    Collaborators

    • saveryanov