Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function toMarkdown({ meta, changes }, options) {
const template = fs.readFileSync(MARKDOWN_TEMPLATE, 'utf-8')
const compileTemplate = handlebars.compile(template)
const changelog = update(changes, '[:].groups[:].commits[:]', mapCommit(meta, options))
return compileTemplate({ changelog })
}