0.2.2 • Published 7 years ago

micro-to-lambda v0.2.2

Weekly downloads
-
License
MIT
Repository
-
Last release
7 years ago

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
0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago