New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ddbitemsizer

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ddbitemsizer

Get the byte size of your DynamoDB input.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

ddbitemsizer

Get the byte size of your DynamoDB input.

A handy utility that tries to mimic the general behavior of this excellent online tool.

Installation

For pulling the package into your project, run npm install ddbitemsizer.

For developing on this package, clone it and install dependencies with npm install or your equivalent command.

Usage

It should work with any regular DynamoDB input.

import { DynamoDbItemSizer } from 'ddbitemsizer';

const itemSizer = new DynamoDbItemSizer();

const size = itemSizer.get({
  "itemType": { "S": "SLOT" },
  "id": { "S": "abc1231" },
  "hostName": { "S": "Harry Mason" },
  "timeSlot": { "S": "February 23, 1999" },
  "slotStatus": { "S": "OPEN" },
  "createdAt": { "S": "February 1, 1999" },
  "updatedAt": { "S": "February 1, 1999" },
  "expiresAt": { "N": "2099" }
});

console.log(`The size of this input is ${size} bytes.`); // "The size of this input is 141 bytes."

Keywords

FAQs

Package last updated on 10 Dec 2023

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