Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including json-size-explorer with all npm packages installed. Try it out:

var jsonSizeExplorer = require("json-size-explorer")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

json-size-explorer v1.0.3

Get insight of the size of your JSON documents


Get insight about the content of your JSON documents. Find what is taking the most space. Find duplicates, key size, depth, etc


npm install -g json-size-explorer


json-size-explorer --help

  Usage: json-size-explorer [options]

    --path [string]  Path of JSON document
    --items [num]    Add the specified type of cheese [marble] (default: 5)
    -h, --help       output usage information

What can it do

  • file size
  • number of keys
  • size of all keys
  • count and size of each keys
  • count and size of each values
  • count of key-value combo to detect duplicated structures





  • Improve display of Key/Value. This helps finding pure duplication


  • Display the number of keys found in the document
  • Align data in the column to improve readability


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free