$ cnpm install github-latest
get the latest (semver) tag number of a repo
npm install github-latest
require('github-latest')('tmpvar', 'tpad-firmware', function(e, tag) {
console.log(tag); // outputs 0.0.3
});
# license
MIT
Copyright 2014 - 2017 © taobao.org |