tap-filter

1.0.3 • Public • Published

tap-filter

Stream that receives TAP and filters it according to given TAP types.

install

npm install tap-filter

example

# run tests, output only test and plan lines, format with tap-spec 
npm test | tap-filter plan test | tap-spec
const filter = require('tap-filter')
 
someTapStream
  .pipe(filter(['test-fail']))
  .pipe(process.stdout)

types

  • version
  • plan
  • bailout
  • diagnostic
  • test
  • test-pass
  • test-fail

cli

tap-parser [options] [types...]
 
  Options:
 
    -h, --help     output usage information
    -r, --reverse  filter out given types
 
  TAP types:
    version
    plan
    bailout
    diagnostic
    test
    test-pass
    test-fail

API

filter(types = [], reverse = false)

  • types (array)
  • reverse (boolean)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    1
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i tap-filter

Weekly Downloads

1

Version

1.0.3

License

CC0-1.0

Last publish

Collaborators

  • m59