@environment-safe/stream
v0.0.1
Published
uniform steams for usage everywhere without build
Readme
@environment-safe/stream
Just a uniform way to include streams
Usage
import {
ReadableStream,
ReadableStreamDefaultReader,
ReadableStreamDefaultController,
WritableStream,
WritableStreamDefaultWriter,
WritableStreamDefaultController,
TransformStream,
TransformStreamDefaultController,
ByteLengthQueuingStrategy,
CountQueuingStrategy,
ReadableStreamBYOBReader,
ReadableByteStreamController,
ReadableStreamBYOBRequest
} from '@environment-safe/stream';Testing
Run the es module tests to test the root modules
npm run import-testto run the same test inside the browser:
npm run browser-testto run the same test headless in chrome:
npm run headless-browser-testto run the same test inside docker:
npm run container-testRun the commonjs tests against the /dist commonjs source (generated with the build-commonjs target).
npm run require-testDevelopment
All work is done in the .mjs files and will be transpiled on commit to commonjs and tested.
If the above tests pass, then attempt a commit which will generate .d.ts files alongside the src files and commonjs classes in dist
