Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npmvi

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npmvi - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

2

package.json
{
"name": "npmvi",
"version": "0.0.4",
"version": "0.0.5",
"description": "\"Node.JS Package Multiple Version Installer\" A command tool, which allows you to install multiple versions for the same package in a project.",

@@ -5,0 +5,0 @@ "dependencies": {},

@@ -1,2 +0,54 @@

# npmvi
"Node.JS Package Multiple Version Installer" A command tool, which allows you to install multiple versions for the same package in a project.
# 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
```bash
$ npm install -g npmvi
```
## Usage
### Install a multi-version in your project
```bash
$ 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
```bash
$ cd ~/your_project
$ npmvi install
```
### Using the multi-version installed with NPMVI
```JavaScript
var express3NpmviObject = require('@npmvi/express-3.0.0');
var express4NpmviObject = require('@npmvi/express-4.0.0');
express3NpmviObject.index; // the original express3 module entrance
express3NpmviObject.name; // express
express3NpmviObject.version; // 3.0.0
express3NpmviObject.packageJSON; // express3 package.json
express3NpmviObject.isNPMVI; // true
express4NpmviObject.index; // the original express4 module entrance
express4NpmviObject.name; // express
express4NpmviObject.version; // 4.0.0
express4NpmviObject.packageJSON; // express4 package.json
express4NpmviObject.isNPMVI; // true
```
### Remove
```bash
$ cd ~/your_project
$ npmvi remove express@3.0.0
$ npmvi remove express@4.0.0
```

@@ -7,4 +7,6 @@ var package = require('./package.json');

index: require(moduleName),
package: modulePackage,
isNPVI: true,
packageJSON: modulePackage,
name: modulePackage.name,
version: modulePackage.version,
isNPMVI: true,
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc