1.0.0 • Published 7 years ago

strava-pr-efforts v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

strava-pr-efforts Build Status

Transform stream that filters PRs

Install

$ npm install --save strava-pr-efforts

Usage

var prs = require('strava-pr-efforts')

fs.createReadStream('efforts.ndjson')
  .pipe(ndjson.parse())
  .pipe(prs())
  .pipe(ndjson.stringify())
  .pipe(process.stdout)
cat efforts.ndjson | strava-pr-efforts

API

prs([options]) -> stream.Transform

options
rank

Type: number
Default: 1

The minimum rank to filter. By default, only true PRs (rank of 1) will be passed along.

License

MIT © Ben Drucker