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

0.11.0 • Public • Published

Official Node.js runtime 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)

Debug

Set the NODE_DEBUG to brer to print all internal log messages.

Readme

Keywords

Package Sidebar

Install

npm i brer

Weekly Downloads

6

Version

0.11.0

License

MIT

Unpacked Size

29.6 kB

Total Files

12

Last publish

Collaborators

  • greguz