0.2.4 • Published 3 years ago
columnify-json v0.2.4
columnify-json
A simple, one-dependency JSON formatter that uses whitespace and key (re)ordering to tabulate entries in JSON collections.
Particularly useful for certain kinds of configuration files. Combine
with other CLI tools such as jq and grep for maximum effect.
Example
With an input such as:
[{"foo": {"b": 42}}, {"foo": null, "bar": {"a": 17}}]columnify-json will output the following:
[
{ "foo": { "b": 42 } },
{ "bar": { "a": 17 }, "foo": null }
]Install
npm install -g columnify-jsonUsage
columnify-json /path/to/file.json // reads from file
echo '{"foo": "bar"}' | columnify-json // reads from stdin