aws-lambda-pify

3.0.0 • Public • Published

aws-lambda-pify Build Status

Promisify an AWS lambda function

Install

$ npm install --save aws-lambda-pify

Usage

const pify = require('aws-lambda-pify');
const index = require('./');
 
const fn = pify(index.handler);
 
fn({foo: 'bar'}).then(() => {
    //=> success
});

API

pify(input, [options])

Returns a promise wrapped version of the supplied Lambda function.

input

Type: function

The AWS Lambda function.

options

Type: object

aws-lambda-mock-context options object

Related

License

MIT © Sam Verschueren

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.0
    103
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.0
    103
  • 2.0.0
    0
  • 1.1.0
    0
  • 1.0.0
    0
  • 0.1.0
    0

Package Sidebar

Install

npm i aws-lambda-pify

Weekly Downloads

103

Version

3.0.0

License

MIT

Last publish

Collaborators

  • samverschueren