micro-to-lambda

0.2.2 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i micro-to-lambda

Weekly Downloads

0

Version

0.2.2

License

MIT

Last publish

Collaborators

  • markmarijnissen