A parser and encoder for DynamoDB records
This converts to and from the AWS DynamoDB record format:
const {encodeRecord, parseRecord} = require('dynamodb-parser');
const ddbRecord = encodeRecord({foo: 'FOO', bar: {baz: 42}});
// { foo: { S: 'FOO' }, bar: { M: { baz: { N: '42' } } } }
const obj = parseRecord(ddbRecord);
// { foo: 'FOO', bar: { baz: 42 } }