npm-manager v1.4.1
NPM Manager
CLI Wrapper around NPM
Getting Started
# npm i -g npm-managerCommands
Can run all commands with npm-manager ... or nm (alias)
nm update
Update dependencies in package.json in current directory.
Requires ncu.
This also force re-creates the package-lock.json and (re-)adds it to git.
nm persist pkg
Persist dependencies of current project into offline/package-json.tar.gz
Can persist custom dependencies e.g. with nm persist npm@6.1.0 to offline/npm@6.1.0.tar.gz.
nm install pkg
Install dependencies from offline/package-json.tar.gz. Will throw an error if not in sync.
Can install global dependencies e.g. with nm install npm@6.1.0 from offline/npm@6.1.0.tar.gz.
Can pass nested arguments with --args="${ARGS}". Example:
$ nm install npm@6.1.0 --args="--arg1 --arg2"nm verify pkg
Verify that dependency offline cache is valid.
How it works
Uses npm cache and saves / restores it into / from archive. Uses shell scripts, so unix is required.