MCPcopy Create free account
hub / github.com/astuyve/lambda-stream / handler

Function handler

examples/example.js:5–10  ·  view source on GitHub ↗
(event, responseStream, _context)

Source from the content-addressed store, hash-verified

3const { streamifyResponse } = require('lambda-stream')
4
5const handler = async (event, responseStream, _context) => {
6 // As an example, convert event to a readable stream.
7 requestStream = Readable.from(Buffer.from(JSON.stringify({ hello: 'world' })))
8
9 await pipeline(requestStream, responseStream)
10}
11
12module.exports.gzip = streamifyResponse(handler)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…