micro-to-lambda
v0.2.2
Published
Convert a [micro](https://github.com/zeit/micro) function to a lambda handler.
Downloads
2
Readme
micro-to-lambda
Convert a micro function to a lambda handler.
Installation
npm install --save micro-to-lambda
Usage
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);
changelog
- 0.2.0 - remove async-to-gen
- 0.1.0 - initial release