UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

13 lines (11 loc) 221 B
'use strict'; var gitSemverTags = require('git-semver-tags'); module.exports = function(cb) { gitSemverTags(function(err, tags) { if (err) { cb(err); return; } cb(null, tags[0] || ''); }); };