Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lambda-handler-tester) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
lambda-handler-tester
Test AWS Lambda handler built with javascript on the command line. This tool loads the javascript and call the handler function with the provided event data. Handler which can handler streaming are supported when using the flag
-s.
Usage
Usage: pnpm dlx lambda-handler-tester [options]
Options:
-V, --version output the version number
--handler [PATH] path to request handler
-s, --streaming streaming handler (default: false)
-e, --event [PATH] path to an json file with a valid event
-c, --context [PATH] path to an json file with a valid context
-p, --path [PATH] path to request (default: "/")
--decode-base64 decode base64 body (default: false)
--header only show header without body (default: false)
-v, --verbose enables verbose logging (default: false)
--response-time measure the response time (default: false)
--repeat <number> repeat request [n] times (default: 1)
--silent no output (default: false)
-d, --debug enables verbose logging (default: false)
-h, --help display help for command
Examples:
$ pnpm dlx lambda-handler-tester
0.0.xx-developmentFramework detection
These frameworks are detected:
If your network is not detected you will need to provide the path to the file with the AWS Lambda Handler:
$ pnpm dlx lambda-handler-tester --handler ./aws-lambda-output/handler.mjs