1.0.2 • Published 8 years ago

getver v1.0.2

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

npm version Build status Dependencies

Install

npm install --save getver

Use

var getver = require('getver');
getver({
  username: 'gswalden', // GitHub username of package owner
  repo: 'getver' // GitHub repo name of package
}, function(err, version, pkg) {
  console.log(err); // null or Error
  console.log(version); // string containing version, i.e. "1.0.0"
  console.log(pkg); // object containing entire package.json
});

Notes

This is a thin wrapper around github-get, and the options object will pass-through to that package. Therefore, you can include a token property in order to access private repos.

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago