npack - node.js packages manipulation tool. It provides few methods to install new package, fast switch between package versions, clean installed package.
$ npm install -g npack
alternatively you could install it locally
You should create npm tarball package first with a command npm pack
.
Go to some directory and run:
$ npack install <path_to_npm_tarball_package>
Package will be installed and will be set as current.
You can switch between installed packages with command:
$ npack use <package_name>
In directory where you previously installed package run:
$ npack list
To show detailed info about package run:
$ npack info <package_name>
To uninstall installed package run:
$ npack uninstall <package_name>
To execute npm script with optional agruments run:
$ npack run <script_name>
$ npack run <script_name> arg_1 arg_2
$ npack run <script_name> -- arg_1 --with flag