json-field-size

1.2.1 • Public • Published

json-field-size

A CLI tool to calculate size of all fields in a json, for memory analysis.

Dependency Status devDependency Status Build Status: Linux Build Status: Windows npm version Downloads type-coverage

install

yarn global add json-field-size

usage

run json-field-size test.json

┌─────────┬─────┬──────┬───────────┬─────────┐
│ (index) │ key │ size │ totalSize │ percent │
├─────────┼─────┼──────┼───────────┼─────────┤
│    0    │ 'b' │  7   │    29     │  75.9   │
│    1    │ 'a' │  17  │    29     │  41.4   │
└─────────┴─────┴──────┴───────────┴─────────┘

options

key description
--debug debug mode
-h,--help Print this message.
-v,--version Print the version

Readme

Keywords

none

Package Sidebar

Install

npm i json-field-size

Weekly Downloads

16

Version

1.2.1

License

MIT

Unpacked Size

7.69 kB

Total Files

5

Last publish

Collaborators

  • plantain_00