Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/rjz/own-version
- Owner: rjz
- License: other
- Created: 2014-12-07T22:11:35.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-07T22:16:50.000Z (about 10 years ago)
- Last Synced: 2024-11-22T01:19:56.971Z (about 1 month 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