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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    11
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    11
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i aws-converter

Weekly Downloads

11

Version

0.0.3

License

Apache-2.0

Last publish

Collaborators

  • debrice