finki-main
main
|
Last change
on this file since 81bc7da was 81bc7da, checked in by Klimentina Efremova <klimentina08642@…>, 3 months ago |
|
Initial commit
|
-
Property mode
set to
100644
|
|
File size:
563 bytes
|
| Rev | Line | |
|---|
| [81bc7da] | 1 | # is-lambda
|
|---|
| 2 |
|
|---|
| 3 | Returns `true` if the current environment is an [AWS
|
|---|
| 4 | Lambda](https://aws.amazon.com/lambda/) server.
|
|---|
| 5 |
|
|---|
| 6 | [](https://travis-ci.org/watson/is-lambda)
|
|---|
| 7 | [](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.