@financial-times/n-lambda

Like n-express, but for λ

Stats

StarsIssuesVersionUpdatedCreatedSize
@financial-times/n-lambda
1.2.24 years ago6 years agoMinified + gzip package size for @financial-times/n-lambda in KB

Readme

n-lambda

Like n-express, but for λ

Usage

'use strict';

var λ = require('@financial-times/n-lambda');

exports.handle = λ(function(event) {
    return somethingThatReturnsAPromise()
      .catch(function(err) {
        if (/* err is a server (rather than a user) error */) {
          λ.raven.captureError(err);
        }
        return Promise.reject(err);
      });
});

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.