Skip to content

SamVerschueren/aws-lambda-pify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Promisify an AWS lambda function.

Resources

License

Stars

Watchers

Forks

Packages

No packages published