npm.io
2.0.2 • Published 11 years ago

gits-latest-tag

Licence
MIT
Version
2.0.2
Deps
3
Vulns
1
Weekly
0

github-latest-tag

A lib to get the latest tag of a repo on Github.

Example

var co = require('co');
var GitHub = require('github');
var github = new GitHub({ version: '3.0.0' });
var latestTag = require('s-github-latest-tag')(github);

co(function *() {
  var tag = yield latestTag('travisjeffery', 'timecop');
  console.log(tag); // v0.7.1
})();

Keywords