@jim-brighter/lambda-local-runner 0.1.3 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -3,4 +3,15 @@ Super simple cli tool for running NodeJS lambda functions locally as a server.
|
|
|
3
3
|
|
|
4
4
|
Does not attempt to run any kind of gateway or load balancing layer.
|
|
5
5
|
|
|
6
|
-
Uses
|
|
6
|
+
Uses [jiti](https://www.npmjs.com/package/jiti) for universal compatibility.
|
|
7
|
+
|
|
8
|
+
### Usage
|
|
9
|
+
Provide the handler filename and function
|
|
10
|
+
```bash
|
|
11
|
+
npx lambda-local-runner index.js main
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
Defaults to function name "handler" if none provided:
|
|
15
|
+
```bash
|
|
16
|
+
npx lambda-local-runner main.ts
|
|
17
|
+
```
|
package/package.json
CHANGED