UNPKG

@marionebl/git-latest-semver-tag

Version:

Get the most recent git semver tag of your repository

12 lines (10 loc) 249 B
'use strict'; var gitSemverTags = require('@marionebl/git-semver-tags'); module.exports = function(callback) { gitSemverTags(function(error, tags) { if (error) { return callback(error); } callback(null, tags[0] || ''); }); };