A CLI tool to format JSON files, designed as a post-hook to fix Prettier's JSON output. Version 1.1.0 is the latest stable release. It provides a simple command-line interface for formatting JSON files either globally or locally via npm scripts. Differentiators: lightweight, zero dependencies, focused solely on JSON formatting without opinionated defaults.
npm install format-json-cliVerified import paths — ran on the pinned version, not inferred.
Installs the CLI globally, creates a sample JSON file, and formats it, showing stdout output and in-place modification pattern.
Use shell redirection: `format-json-cli input.json > output.json` or `mv` trick.
Run `npm install -g format-json-cli` or `npx format-json-cli` for one-off use.
This is a CLI tool, not a library. Use the command line interface.
No dependency data recorded yet.