🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

product-version

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

product-version

Get the version of the current system. Example: v0.10.28

latest
Source
npmnpm
Version
0.1.8
Version published
Weekly downloads
11
22.22%
Maintainers
1
Weekly downloads
 
Created
Source

Product-versions

use the commandLine with node

Get the OS X version of the current system. Example: 10.9.3

Get the NODE version of the current system. Example: v0.10.28

Install npm dependencies

$ npm install

mocha Test

$ npm test
or just type mocha anywhere
$ mocha
var assert = require('assert');

it('should return the current node version', function (cb) {
	require('./node.js')(function (err, version) {
		console.log('NODE:', version);
		assert(!err, err);
		assert(version.length > 0);
		cb();
	});
});

it('should return the current OSX version', function (cb) {
	require('./osx.js')(function (err, version) {
		console.log('OSX:', version);
		assert(!err, err);
		assert(version.length > 0);
		cb();
	});
});

CommandLine install --global

$ npm install -g product-version

just use the command: product-version

$ product-version --help

Example
  $ product-version
  v0.10.28

Keywords

cli

FAQs

Package last updated on 22 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts