strava-pr-efforts
v1.0.0
Published
Transform stream that filters PRs
Downloads
5
Maintainers
Readme
strava-pr-efforts
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