is-lambda

Detect if your code is running on an AWS Lambda server

lambda-local

Commandline tool and API to run Lambda functions on your local machine.