Stream Mock
Mock nodejs streams.
Features
- Create a readable stream from any iterable.
- Create a writable stream that puts its data at your disposal.
- Create a duplex stream that combines a readable and writable stream together.
- Can operate both in object and normal ( Buffer ) mode.
Quick start
yarn add stream-mock
Or, if you are more a npm
person
npm i stream-mock
Basic usage
You are building an awesome brand new Transform stream that rounds all your values.
; { this; ; }
Now you need / want to test it.
;; ; chai; ;
API documentation
Full API doc is hosted here
License
MIT