MCPcopy Create free account
hub / github.com/cameri/nostream / transform

Function transform

src/utils/stream.ts:6–8  ·  view source on GitHub ↗
(chunk, _encoding, callback)

Source from the content-addressed store, hash-verified

4 new Transform({
5 objectMode: true,
6 transform(chunk, _encoding, callback) {
7 callback(null, fn(chunk))
8 },
9 })
10
11export const streamEach = (writeFn: (chunk: any) => void) =>

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected