https://github.com/rjz/own-version
Get main node.js package's version.
https://github.com/rjz/own-version
Last synced: 3 months ago
JSON representation
Get main node.js package's version.
- Host: GitHub
- URL: https://github.com/rjz/own-version
- Owner: rjz
- License: other
- Created: 2014-12-07T22:11:35.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-07T22:16:50.000Z (over 10 years ago)
- Last Synced: 2025-03-06T14:23:08.393Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 117 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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