npm.io
6.0.1 • Published 2 weeks ago

conventional-commits-filter

Licence
MIT
Version
6.0.1
Deps
0
Size
15 kB
Vulns
0
Weekly
0
Stars
8.5K

conventional-commits-filter

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

Filter out reverted commits parsed by conventional-commits-parser.

Install

# pnpm
pnpm add conventional-commits-filter
# yarn
yarn add conventional-commits-filter
# npm
npm i conventional-commits-filter

Usage

import { filterRevertedCommitsSync } from 'conventional-commits-filter'

// commits parsed by conventional-commits-parser,
// where one commit reverts another
const commits = [/* ... */]

for (const commit of filterRevertedCommitsSync(commits)) {
  console.log(commit) // reverted commits are filtered out
}

Documentation

For streams and async iterables helpers and API reference, visit the documentation website.

License

MIT Steve Mao

Keywords