is-lambda
Returns true
if the current environment is an AWS
Lambda server.
Installation
npm install is-lambda
Usage
var isLambda = require('is-lambda')
if (isLambda) {
console.log('The code is running on a AWS Lambda')
}
License
MIT
Name |
Last Commit
4f97625c
–
Merge branch 'hotfix3.1'
|
History
|
Last Update |
---|---|---|
.. | ||
.npmignore | Loading commit data... | |
.travis.yml | Loading commit data... | |
LICENSE | Loading commit data... | |
README.md | Loading commit data... | |
index.js | Loading commit data... | |
package.json | Loading commit data... | |
test.js | Loading commit data... |
Returns true
if the current environment is an AWS
Lambda server.
npm install is-lambda
var isLambda = require('is-lambda')
if (isLambda) {
console.log('The code is running on a AWS Lambda')
}
MIT