UNPKG

commit-and-tag-version

Version:

replacement for `npm version` with automatic CHANGELOG generation

5 lines (4 loc) 143 B
module.exports = function (rawMsg, newVersion) { const message = String(rawMsg); return message.replace(/{{currentTag}}/g, newVersion); };