is-lambda
Version:
Detect if your code is running on an AWS Lambda server
28 lines (18 loc) • 563 B
Markdown
# is-lambda
Returns `true` if the current environment is an [AWS
Lambda](https://aws.amazon.com/lambda/) server.
[](https://travis-ci.org/watson/is-lambda)
[](https://github.com/feross/standard)
## Installation
```
npm install is-lambda
```
## Usage
```js
var isLambda = require('is-lambda')
if (isLambda) {
console.log('The code is running on a AWS Lambda')
}
```
## License
MIT