NPMVI
Node.JS Package Multiple Version Installer is a command tool, which allows you to install multiple versions for the same package in a project.
NPMVI is NOT a replacement for NPM
Installation
$ npm install -g npmvi
Usage
Install a multi-version in your project
$ cd ~/your_project
$ npmvi install express@3.0.0
$ npmvi install express@4.0.0
or install the multi-version that you installed before.
It's like the npm install
command but it's used to install multi-version
$ cd ~/your_project
$ npmvi install
Using the multi-version installed with NPMVI
var express3NpmviObject = require('@npmvi/express-3.0.0');
var express4NpmviObject = require('@npmvi/express-4.0.0');
express3NpmviObject.index;
express3NpmviObject.name;
express3NpmviObject.version;
express3NpmviObject.packageJSON;
express3NpmviObject.isNPMVI;
express4NpmviObject.index;
express4NpmviObject.name;
express4NpmviObject.version;
express4NpmviObject.packageJSON;
express4NpmviObject.isNPMVI;
Remove
$ cd ~/your_project
$ npmvi remove express@3.0.0
$ npmvi remove express@4.0.0