A quick demo of https://github.com/flesch/node-lambda-babel-template.
$ curl --silent https://io.fles.ch/echo | xargs -0 node -e "console.log(JSON.stringify(JSON.parse(process.argv[1]), null, 2))"
A quick demo of https://github.com/flesch/node-lambda-babel-template.
$ curl --silent https://io.fles.ch/echo | xargs -0 node -e "console.log(JSON.stringify(JSON.parse(process.argv[1]), null, 2))"
'use strict'; | |
import { name, version } from './package.json'; | |
export default (event, context, callback) => { | |
callback(null, { name, version, event, context }); | |
} |