Extracts the environment of the lambda function
npm install aws-lambda-env> Extracts the environment of the lambda function.
```
$ npm install --save aws-lambda-env
`js
var lambdaEnv = require('aws-lambda-env');
exports.handler = function(event, context) {
var env = lambdaEnv(context);
//=> production
};
`
Returns the alias or version of the lambda invocation. Returns undefined if $LATEST is executed.
#### context
Type: object
Context of the lambda function.
#### options
Type: object {$LATEST: 'development', default: 'production'}
Default:
Maps the function version to a specific stage. If the version is not present in the map, it will pick the default` value.
MIT © Sam Verschueren