as promised, the latest git tag
npm install latest-git-tag$ npm install latest-git-tagsh
$ latest-git-tag
$ # vX.X.X$ latest-git-tag --strip
$ # X.X.X
`$3
`js
const latestTag = require('latest-git-tag');latestTag().then(tag => {
console.log(tag); // vX.X.X
}
latestTag({ strip: true }).then(tag => {
console.log(tag); // X.X.X
}
`api
$3
Get the latest git tag. Pass options.#### options
##### strip
Type:
booleanDefault:
falseStrip out the leading
v from the tag.##### always
Type:
booleanDefault:
false`Failsafe if no tag can be described