Run NodeJS lambdas locally, with minimum configuration. Supports both JavaScript and TypeScript files.
npm i xlambda
Create a file named .xlambdarc.json
in the root of your project, such as:
{
"file": "src/my-handler.ts",
"path": "/my-handler/with/:custom/params",
"port": 3000
}
Once the .xlambdarc.json
file is configured, you can run:
npx xlambda