github-resolve-semver

resolve an npm-style semver range to a git tag for a github repo

github-resolve-semver

resolve an npm-style semver range to a git tag for a github repo

var resolve = require('github-resolve-semver')

resolve('jden','github-resolve-semver', '0.1.x', function (err, ver) {
  console.log(ver)
  // '0.1.0' (or whatever's the latest)
})

Yields the latest version tag satisfying the range. Uses the algorithm in [semver](https://npm.im/semver), just like npm.

Yields the latest version tag for the repo.

Yields an array of all semver tags for the repo.

$ npm install github-resolve-semver

From package root:

$ npm install
$ npm test

Special thanks to @tmpvar for github-latest, on which this work is based.

MIT. (c) 2013 jden jason@denizac.org. See LICENSE.md