Convert a micro function to a lambda handler.
npm install --save micro-to-lambda
Given a micro function in index.js
module.exports = (req,res) => ({ time: new Date() })
Convert it to a lambda function in handler.js
:
var microToLambda = require('micro-to-lambda');
var index = require('./index');
module.exports.time = microToLambda(index);
- 0.2.0 - remove async-to-gen
- 0.1.0 - initial release