blob: 31a8f566ca0022c028a10ca175921ce18c14cf5d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
# 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
|