UNPKG
pipio
Version:
latest (0.1.7)
0.1.7
0.1.6
0.1.5
0.1.4
0.1.0
0.0.0-beta
Chain functions together and handle a complex workflow
github.com/ham3dz/pipio
ham3dz/pipio
pipio
/
dist
/
import
/
handlers.js
10 lines
(9 loc)
•
226 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
/** * Lambda wrapper middleware * Convert lambda handler arguments to pipio compatible arguments * @returns A pipio handlers */
export
const
lambdaWrapper = () => (
args
) => ({
event
:
args
[
0
], context:
args
[
1
], });