Closed
Description
I have recently been thinking how to make this Deno compatible...
two think need to happen then.
- have to change to es6 module so this can be imported into any Deno code using
import
statement. - make node-stream a optional dependency
stream () {
if (globalThis.ReadableStream?.from) {
return ReadableStream.from(read(...))
} else {
import('stream').then(({Readable}) => Readable.from(read(...)))
}
}
Metadata
Metadata
Assignees
Labels
No labels