Skip to content

SalvoCozzubo/dynamodb-item-size

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DynamoDb-Item-Size

Codacy Badge

DynamoDb-Item-Size is a Nodejs library for calculate the byte size of an object.

Installation

npm install dynamodb-item-size

Usage

const { calculateItemSize } = require('dynamodb-item-size');

const obj = {
  name: 'Salvo',
  age: 29
};

const size = calculateItemSize(obj);  // Output: 14

Test

git clone https://github.com/SalvoCozzubo/dynamodb-item-size
cd dynamodb-item-size
npm install
npm test

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

Calculate the byte size of an object for AWS DynamoDb

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published