0.10.2 • Published 2 months ago
brer v0.10.2
Official Node.js bindings for Brer
import brer from 'brer'
async function myTask (payload, ctx) {
console.log('Function name: ' + ctx.invocation.functionName)
console.log('Invocation id: ' + ctx.invocation._id)
console.log('Payload type: ' + ctx.contentType)
// do something useful with the payload (Buffer)
return 42
}
// Run
brer(myTask)