JSPM

aws-lambda-pify

3.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 34
  • Score
    100M100P100Q58854F
  • License MIT

Promisifies an AWS lambda function

Package Exports

  • aws-lambda-pify

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (aws-lambda-pify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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

License

MIT © Sam Verschueren