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

Package detail

in-lambda

MattLongCode4MIT1.2.0

Returns a boolean value depending if code is executing within AWS Lambda.

readme

in-lambda

Returns a boolean value depending on whether code is executing within AWS Lambda.

Installation

yarn add in-lambda or npm install in-lambda

Example Usage

const inLambda = require('in-lambda');

if(inLambda) {
    // Lambda code
}