UNPKG

@push.rocks/webstream

Version:

A cross-platform streaming package designed for node and web environments.

16 lines (12 loc) 454 B
// @push.rocks scope import * as smartenv from '@push.rocks/smartenv'; export { smartenv, } // lets setup dependencies const smartenvInstance = new smartenv.Smartenv(); await smartenvInstance.getSafeNodeModule<typeof import('stream/web')>('stream/web', async (moduleArg) => { globalThis.ReadableStream = moduleArg.ReadableStream; globalThis.WritableStream = moduleArg.WritableStream; globalThis.TransformStream = moduleArg.TransformStream; })