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.3 to 0.0.4

7

bin.js

@@ -22,3 +22,3 @@ #!/usr/bin/env node

var mAndV = process.argv[3].split('@');
if (mAndV) {
if (Array.isArray(mAndV)) {
moduleVersion = mAndV[mAndV.length - 1];

@@ -32,3 +32,3 @@ moduleName = mAndV[mAndV.length - 2];

} else {
process.stdout.write('invalid option: ' + argvCmd + '\n');
process.stdout.write('npmvi: 😮 invalid option: ' + argvCmd + '\n');
process.exit(1);

@@ -67,3 +67,3 @@ }

if (closeCode) {
process.stderr.write('🙀 Failed! '+ installedPackageInfo.package + '@' + installedPackageInfo.version + '\n');
process.stderr.write('🙀😱Failed! '+ installedPackageInfo.package + '@' + installedPackageInfo.version + '\n');
process.exit(closeCode);

@@ -83,2 +83,3 @@ }

removePackage(packageJSONPath, moduleName, moduleVersion);
process.stdout.write('👏 All Done!\n');
}

@@ -85,0 +86,0 @@ }

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

@@ -18,4 +18,13 @@ "dependencies": {},

],
"author": "Zen",
"license": "MIT"
"author": "Zen WANG <zenyes@gmail.com> (https://github.com/zenboss)",
"license": "MIT",
"main": "index.js",
"repository": {
"type": "git",
"url": "git+https://github.com/zenboss/npmvi.git"
},
"bugs": {
"url": "https://github.com/zenboss/npmvi/issues"
},
"homepage": "https://github.com/zenboss/npmvi#readme"
}
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