tap-lexer
Receives a stream of TAP lines and emits JS objects of types and values.
Install
npm install tap-lexer
Usage
const tapLexer = const through = processstdin // stream that emits TAP processstdin
token: object
type: string, unknown
- version
- plan
- test
- bailout
- diagnostic
- yaml
- unknown
value: string
the value of the input associated with a type (the "plan" line if type is "plan")