Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@financial-times/n-lambda

Like n-express, but for λ

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);
      });
});