Socket
Socket
Sign inDemoInstall

dynamodb-stream-item-schema-stripper

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dynamodb-stream-item-schema-stripper

It strips DynamoDB Stream item of its accompanying schema metadata and returns a plain Javascript object


Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

dynamodb-stream-item-schema-stripper

dynamodb-stream-item-schema-stripper is a tiny utility that strips DynamoDB Stream Item of its schema and returns a plain JavaScript object with no effort on your side.

Example:

var strip = require('dynamodb-stream-item-schema-stripper').strip;
var item = strip(streamItem);
import { strip } from 'dynamodb-stream-item-schema-stripper';
const item = strip(streamItem);
Sample input:
{
  "firstLevelList": {
    "L": [
      {
        "S": "firstLevelListString"
      },
      {
        "M": {
          "numberNestedInMapNestedInList": {
            "N": "1"
          }
        }
      }
    ]
  },
  "customerEmail": {
    "S": "customerEmail@example.com"
  },
  "resultCode": {
    "S": "resultCode"
  }, ...
Sample output:
{ firstLevelList: [ 'firstLevelListString', { numberNestedInMapNestedInList: 1 } ],
  customerEmail: 'customerEmail@example.com',
  resultCode: 'resultCode',
  id: 'id123',
  firstLevelMap:
   { nestedList: [ 'firstLevelMap.nestedList.String.Value', 1 ],
     numberField: 1,
     stringField: 'firstLevelMap.stringField',
     nestedMap: { nestedStringField: 'firstLevelMap.nestedMap.nestedStringField' } },
  transactionTimestamp: 123
}

Installing

$ npm install --save dynamodb-stream-item-schema-stripper

Contributing

Contributions are always welcome!

Credits

Developed by [microapps] (http://microapps.com/)

License

aws-event-parser is available under the MIT license. See the LICENSE file for more info.

Keywords

FAQs

Package last updated on 01 Jul 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc