chore: embrace web streams #20

Open
opened 2025-08-01 08:55:52 -07:00 by clo · 0 comments
Owner

port the following functions

  • fs.createReadStream(file): ReadableStream
  • fs.createWriteStream(file): ReadableStream
  • crypto.createHash(algo, WritableStream): Promise
  • zlib.createGzip(): TransformStream
  • zlib.createZstdCompress(): TransformStream
  • stream.promises.pipeline
  • child_process.spawn
  • readline.createInterface(): TransformStream
  • all code using the above

this can be done with more "overlay" modules like #sitegen/fs

port the following functions - [ ] fs.createReadStream(file): ReadableStream - [ ] fs.createWriteStream(file): ReadableStream - [ ] crypto.createHash(algo, WritableStream): Promise<string> - [ ] zlib.createGzip(): TransformStream - [ ] zlib.createZstdCompress(): TransformStream - [ ] stream.promises.pipeline - [ ] child_process.spawn - [ ] readline.createInterface(): TransformStream - [ ] all code using the above this can be done with more "overlay" modules like #sitegen/fs
clo changed title from embrace web streams to chore: embrace web streams 2025-08-03 19:01:08 -07:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: clo/sitegen#20
No description provided.