MCPcopy
hub / github.com/npmx-dev/npmx.dev / read

Function read

server/api/registry/image-proxy/index.get.ts:208–211  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

206 const upstream = Readable.fromWeb(response.body as any)
207 const limited = new Readable({
208 read() {
209 // Resume the upstream when the consumer is ready for more data
210 upstream.resume()
211 },
212 })
213
214 upstream.on('data', (chunk: Buffer) => {

Callers 2

loadBlogPostsFunction · 0.85
syncFileFunction · 0.85

Calls 1

resumeMethod · 0.80

Tested by

no test coverage detected