aws-converter
v0.0.3
Published
The AWS converter to be used with lambda
Downloads
12
Maintainers
Readme
aws-converter
This module provides the AWS converter which appeared in AWS 2.71.0. Since Lambda receive 2.54.0, you can't easily unmarshall records returned by dynamodb stream.
This Library have been created to resolve this issue without having to manually add AWS-SDK within your bundle.
Usage
import { marshall, unmarshall } from "aws-converter"
marshall({
baz: { S: "foo bar" },
fooz: {
L: [
{
S: "foo",
},
{
N: "32.23",
},
],
},
})
// {baz: "foo bar", fooz: ["foo", 32.23]}
unmarshall({bar: { N: "32.23" }})
// {bar: 32.23}
Test
Tests run under jest
yarn test