A tiny CLI tool for formatting JSON files with options for indentation, key sorting, and stdin support. Current stable version is 0.1.0. The tool sorts keys alphabetically by default, can replace files in-place, and accepts piped input. It uses json-stable-stringify internally. Useful for quickly beautifying JSON data in the command line with minimal dependencies.
npm install json-format-toolNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates basic CLI usage: formatting a file, piping stdin, replacing in-place, custom indent, and disabling sort.
Use --no-sort option to disable key sorting.
Provide a file path or pipe JSON to stdin.
Install globally with `npm install -g json-format-tool`.
Run `npm install -g json-format-tool`
Provide a JSON file path or pipe JSON to stdin.