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

nh

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nh - npm Package Compare versions

Comparing version 0.1.3 to 0.2.0

6

docs/install.md

@@ -13,2 +13,8 @@ # Install

## ia
Use with `nh ia`.
Installs all packages and their specified versions.
## is

@@ -15,0 +21,0 @@

21

lib/install.js

@@ -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

2

package.json
{
"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)",

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