New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

check-node-version

Package Overview
Dependencies
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-node-version - npm Package Compare versions

Comparing version 3.0.0 to 3.1.0

15

bin.js
#!/usr/bin/env node
"use strict";
var chalk = require("chalk");
var minimist = require("minimist");

@@ -12,9 +13,9 @@ var check = require("./");

if (err.stderr) {
console.error(err.stderr);
console.error(chalk.red.bold(err.stderr));
}
else if (err.execError) {
console.error(err.execError.message);
console.error(chalk.red.bold(err.execError.message));
}
else {
console.error(err.message);
console.error(chalk.red.bold(err.message));
}

@@ -25,6 +26,6 @@ }

if (info.version) {
console.log(name + ": " + info.version);
console.log(name + ": " + chalk.bold(info.version));
}
if (info.notfound) {
console.error(name + ': not installed');
console.error(chalk.red.bold(name + ': not installed'));
}

@@ -48,4 +49,4 @@ if (info.error) {

var range = info.wanted.range;
console.log("Error: Wanted " + name + " version " + raw + " (" + range +")");
console.log(PROGRAMS[name].getInstallInstructions(raw));
console.error(chalk.red.bold("Error: Wanted " + name + " version " + raw + " (" + range +")"));
console.log(chalk.red.bold(PROGRAMS[name].getInstallInstructions(raw)));
}

@@ -52,0 +53,0 @@ });

## Releases
### 3.1.0
* Add colors to terminal output.
### 3.0.0

@@ -4,0 +8,0 @@

{
"name": "check-node-version",
"version": "3.0.0",
"version": "3.1.0",
"description": "Check installed versions of node and npm",

@@ -27,2 +27,3 @@ "main": "index.js",

"dependencies": {
"chalk": "^2.3.0",
"map-values": "^1.0.1",

@@ -29,0 +30,0 @@ "minimist": "^1.2.0",

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