npm.io
9.2.0 • Published 1 month ago

conventional-changelog-writer

Licence
MIT
Version
9.2.0
Deps
0
Vulns
0
Weekly
0
Stars
8.5K

conventional-changelog-writer

ESM-only package NPM version Node version Dependencies status Install size Build status Coverage status

Write logs based on conventional commits and templates.

Install

# pnpm
pnpm add conventional-changelog-writer
# yarn
yarn add conventional-changelog-writer
# npm
npm i conventional-changelog-writer

Usage

import { writeChangelogString } from 'conventional-changelog-writer'

// commits parsed by conventional-commits-parser
const commits = [/* ... */]
const context = {
  version: '1.0.0',
  host: 'https://github.com',
  owner: 'conventional-changelog',
  repository: 'conventional-changelog'
}

console.log(await writeChangelogString(commits, context))
/*
## 1.0.0 (2015-05-29)

### Features

* **ng-list:** Allow custom separator ([13f3160](https://github.com/...))
...
*/

Documentation

For streams and async iterables helpers, context and options reference, customization guide, and CLI usage, visit the documentation website.

License

MIT Steve Mao

Keywords