Crates.io | jsdu |
lib.rs | jsdu |
version | 0.1.0 |
source | src |
created_at | 2024-05-26 23:06:26.676087 |
updated_at | 2024-05-26 23:06:26.676087 |
description | JSON file size analyzer |
homepage | |
repository | https://github.com/Badel2/jsdu |
max_upload_size | |
id | 1252881 |
size | 92,460 |
JSON file size analyzer. Like ncdu but for JSON files.
Ever tried to open a big JSON file with your favorite text editor, only for it to start lagging? Maybe it opened fine but it's minified and you don't know what are you looking at?
Worry not, jsdu will help you make sense of it.
cargo install jsdu
Interactive mode is not implemented yet, but you can do basic stuff using the command line:
# Open JSON file in interactive mode (not implemented yet)
jsdu bigFile.json
# Minify/prettify files (in place)
jsdu min bigFile.json
jsdu fmt bigFile.json
# Explore size of JSON structure
jsdu show bigFile.json
# JSON Pointers are supported (RFC 6901)
jsdu show bigFile.json --pointer "/data/0/"