Comparing version 0.0.3 to 0.0.4
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
10786
228
1
2
6