Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rjz/own-version

Get main node.js package's version.
https://github.com/rjz/own-version

Last synced: 17 days ago
JSON representation

Get main node.js package's version.

Awesome Lists containing this project

README

        

# own-version

Retrieve main package's current version.

Usage
-------------------------------------------------------------------------------

Install via npm:

$ npm install --save own-version

Include in the app:

var ownVersion = require('own-version');

ownVersion(function (err, version) {
console.log('Current version is', version);
});

Or synchronously:

var version = ownVersion.sync();

License
-------------------------------------------------------------------------------

MIT