Skip to content

henhal/dynamodb-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dynamodb-parser

A parser and encoder for DynamoDB records

This converts to and from the AWS DynamoDB record format:

Usage:

Installation

const {encodeRecord, parseRecord} = require('dynamodb-parser');

Encoding a plain JavaScript object into a DynamoDB record:

const ddbRecord = encodeRecord({foo: 'FOO', bar: {baz: 42}});

// { foo: { S: 'FOO' }, bar: { M: { baz: { N: '42' } } } }

Parsing a DynamoDB record into a plain JavaScript object:

const obj = parseRecord(ddbRecord);

// { foo: 'FOO', bar: { baz: 42 } }

About

A parser and encoder for DynamoDB records

Resources

Stars

Watchers

Forks

Packages

No packages published