brer
TypeScript icon, indicating that this package has built-in type declarations

0.10.2 • Public • Published

Official Node.js bindings for Brer

npm JavaScript Style Guide

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)

Readme

Keywords

Package Sidebar

Install

npm i brer

Weekly Downloads

4

Version

0.10.2

License

MIT

Unpacked Size

29.6 kB

Total Files

12

Last publish

Collaborators

  • greguz