aws-converter

0.0.3 • Public • Published

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

Package Sidebar

Install

npm i aws-converter

Weekly Downloads

92

Version

0.0.3

License

Apache-2.0

Last publish

Collaborators

  • debrice