Skip to content

Latest commit

 

History

History
41 lines (28 loc) · 959 Bytes

README.md

File metadata and controls

41 lines (28 loc) · 959 Bytes

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