Last change
on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
563 bytes
|
Rev | Line | |
---|
[6a3a178] | 1 | # is-lambda
|
---|
| 2 |
|
---|
| 3 | Returns `true` if the current environment is an [AWS
|
---|
| 4 | Lambda](https://aws.amazon.com/lambda/) server.
|
---|
| 5 |
|
---|
| 6 | [![Build status](https://travis-ci.org/watson/is-lambda.svg?branch=master)](https://travis-ci.org/watson/is-lambda)
|
---|
| 7 | [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)
|
---|
| 8 |
|
---|
| 9 | ## Installation
|
---|
| 10 |
|
---|
| 11 | ```
|
---|
| 12 | npm install is-lambda
|
---|
| 13 | ```
|
---|
| 14 |
|
---|
| 15 | ## Usage
|
---|
| 16 |
|
---|
| 17 | ```js
|
---|
| 18 | var isLambda = require('is-lambda')
|
---|
| 19 |
|
---|
| 20 | if (isLambda) {
|
---|
| 21 | console.log('The code is running on a AWS Lambda')
|
---|
| 22 | }
|
---|
| 23 | ```
|
---|
| 24 |
|
---|
| 25 | ## License
|
---|
| 26 |
|
---|
| 27 | MIT
|
---|
Note:
See
TracBrowser
for help on using the repository browser.