core/lib/node_modules/is-lambda
Christian Fraß 2c17dcb66f [int]
2023-06-19 15:04:15 +02:00
..
.npmignore [int] 2023-06-19 15:04:15 +02:00
.travis.yml [int] 2023-06-19 15:04:15 +02:00
index.js [int] 2023-06-19 15:04:15 +02:00
LICENSE [int] 2023-06-19 15:04:15 +02:00
package.json [int] 2023-06-19 15:04:15 +02:00
README.md [int] 2023-06-19 15:04:15 +02:00
test.js [int] 2023-06-19 15:04:15 +02:00

is-lambda

Returns true if the current environment is an AWS Lambda server.

Build status js-standard-style

Installation

npm install is-lambda

Usage

var isLambda = require('is-lambda')

if (isLambda) {
  console.log('The code is running on a AWS Lambda')
}

License

MIT