mock-streams
v1.0.2
Published
A package that allows you to test other packages that use readable and or writeable streams. Provides typings for typescript.
Downloads
34
Readme
Mock Streams
A package that allows you to test other packages that use readable and or writeable streams. Provides typings for typescript.
Installation
npm i -D mock-streams # mock-streams NOT mock-stream
Example Usage
import { MockReadableStream, MockWriteableStream } from "mock-streams";
const input = new MockReadableStream();
const output = new MockWriteableStream();
Building from source
npm i
npm run build