Comparing version 0.1.3 to 0.2.0
@@ -13,2 +13,8 @@ # Install | ||
## ia | ||
Use with `nh ia`. | ||
Installs all packages and their specified versions. | ||
## is | ||
@@ -15,0 +21,0 @@ |
@@ -6,6 +6,6 @@ 'use strict'; | ||
var chalk = require('chalk'); | ||
/* stuff i'm working on | ||
// install all packages | ||
program | ||
.command('i') | ||
.command('ia') | ||
.description('install all packages specified') | ||
@@ -22,8 +22,21 @@ .option('-s, --silent', 'do not output anything') | ||
if (err) throw err; | ||
var names = []; | ||
var versions = []; | ||
var tmpPkg = require(process.cwd() + '/package.json'); | ||
for (var p in tmpPkg['dependencies']) { | ||
console.log(p); | ||
names.push(p); | ||
versions.push(tmpPkg['dependencies'][p]); | ||
} | ||
console.log(chalk.bgWhite(chalk.black('nh')) + ' about to install %s', names.join(', ')); | ||
var nv = []; | ||
for (var i = 0; i < names.length; i++) { | ||
var tempString = names[i] + '@' + versions[i]; | ||
console.log(tempString); | ||
nv.push(tempString); | ||
} | ||
npm.commands.install(nv, function (err) { | ||
if (err) throw err; | ||
}); | ||
}); | ||
}); */ | ||
}); | ||
@@ -30,0 +43,0 @@ // install a package |
{ | ||
"name": "nh", | ||
"version": "0.1.3", | ||
"version": "0.2.0", | ||
"description": "npm helpers", | ||
@@ -5,0 +5,0 @@ "author": "Jona Hugger <jona@kyr.li> (http://kyr.li)", |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
4666
96
1