How to use the immutadot.update function in immutadot

To help you get started, we’ve selected a few immutadot examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github frinyvonnick / gitmoji-changelog / packages / gitmoji-changelog-markdown / src / index.js View on Github external
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 })
}