consolelog json-format
Pretty-print JSON from a file, string, or stdin
consolelog json-format messy.jsoncurl -s api.example.com/users | consolelog json-formatFormat a curl response inline
consolelog json-format '{"a":1}' --indent 4 --sortFormat JSON, hash strings, encode Base64, decode JWTs, convert YAML — all from a single pipe-friendly CLI. No signup, no telemetry, just stdout.
npx consolelog-tools json-format file.jsonRun once with npx
npx consolelog-tools <command>Or install globally for a shorter consolelog binary
npm i -g consolelog-toolspnpm add -g consolelog-toolsbun add -g consolelog-toolsRequires Node.js ≥ 18. The package bundles every dependency, so installs are fast and the dependency tree stays out of your node_modules.
Every command reads from a file, an inline string, or stdin — and writes to stdout. So they all compose with each other and with anything else in your shell.
consolelog uuid | consolelog hash --algo sha256Generate a UUID, then SHA-256 hash it in one shell pipeline.
curl -s https://api.example.com/users | consolelog json-formatNo more grepping minified JSON — pipe straight from curl.
consolelog yaml-to-json config.yaml | consolelog json-minify > config.min.jsonConvert + minify in a single line, write to disk.
16 commands across 5 categories. Run any one with --help for its full options.
Pretty-print JSON from a file, string, or stdin
consolelog json-format messy.jsoncurl -s api.example.com/users | consolelog json-formatFormat a curl response inline
consolelog json-format '{"a":1}' --indent 4 --sortStrip whitespace from JSON
consolelog json-minify config.json > config.min.jsonEncode text as Base64
consolelog base64-encode "hello world"cat avatar.png | consolelog base64-encodeEncode binary file contents
Decode Base64 to text
consolelog base64-decode "aGVsbG8gd29ybGQ="Percent-encode a URL or arbitrary string
consolelog url-encode "hello world & cats=dogs"Percent-decode a URL or string
consolelog url-decode "hello%20world"Encode HTML entities (e.g. < to <)
consolelog html-encode "<div>tags</div>"Decode HTML entities back to characters
consolelog html-decode "<div>"Generate one or many v4 UUIDs
consolelog uuidOne UUID
consolelog uuid -n 10Ten UUIDs, one per line
Hash text with MD5, SHA-1, SHA-256, or SHA-512
consolelog hash "secret data" --algo sha256consolelog hash file.txt --algo md5Hash a file's contents
Convert YAML to JSON
consolelog yaml-to-json docker-compose.ymlconsolelog yaml-to-json config.yaml | consolelog json-minifyPipe to minifier
Convert JSON to YAML
consolelog json-to-yaml package.jsonDecode a JWT and print header + payload as JSON
consolelog jwt-decode "eyJhbGciOi..."Convert text between case styles (camel, snake, kebab, etc.)
consolelog case "helloWorldFoo" --to snake→ hello_world_foo
consolelog case "helloWorldFoo" --to kebab→ hello-world-foo
consolelog case "helloWorldFoo" --to constant→ HELLO_WORLD_FOO
Convert text to a URL-safe slug
consolelog slug "Hello, World! 2026"→ hello-world-2026
Generate Lorem Ipsum placeholder text
consolelog lorem --type paragraphs -n 3consolelog lorem --type words -n 50Every command resolves its input in this order, then writes the result to stdout:
Errors go to stderr with a non-zero exit code, so shell pipelines surface failures correctly.
The CLI ships a curated subset; the full 300+ tool catalog lives on the web — searchable with ⌘ K.