is-lambda-env
v1.0.2
Published
Detect if code run on lambda or not
Downloads
7
Maintainers
Readme
islambda
is-lambda-env helps you to detect is your code runs on AWS Lambda/Azure Cloud functions/Google Cloud functions
Supports:
- AWS Lambda
- Azure Cloud functions
- Google Cloud functions
Installation
npm install is-lambda-env
Usage
const isLambda = require('is-lambda-env');
if (isLambda()) {
console.log("I am on lambda");
}