product-version

0.1.8 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.8
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.8
    1
  • 0.1.7
    1
  • 0.1.6
    1
  • 0.1.5
    1
  • 0.1.4
    1

Package Sidebar

Install

npm i product-version

Weekly Downloads

5

Version

0.1.8

License

MIT

Last publish

Collaborators

  • jalalhejazi