str

streamtester

A writable stream which can perform specified tests on the written data

Showing:

Popularity

Downloads/wk

2

GitHub Stars

2

Maintenance

Last Commit

5yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.3KB

License

ISC

Type Definitions

Tree-Shakeable

No?

Categories

Readme

StreamTester

A writable stream which can perform specified tests on the written data

Installation

npm install --save-dev streamtester

Usage

const fs = require('fs')
const packageStream = fs.createReadStream('./package.json')
const StreamTester = require('streamtester')
const streamTester = new StreamTester({
  test: (chunk) =>
    console.assert(JSON.parse(chunk.toString()).name === 'streamtester')
})

packageStream.pipe(streamTester)

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100