#json #readability #format #delimited #better #newline #colorizes

app ndjson

Formats and colorizes newline delimited JSON for better readability

2 unstable releases

0.2.0 Nov 20, 2021
0.1.0 Nov 13, 2021

#13 in #newline

MIT license

10KB
210 lines

ndjson

Formats and colorizes newline delimited JSON for better readability.

Example:

{"type":"json","value":42,"multiline":"line1\nline2","array":[1,2,3]}
type: json value: 42 multiline: line1
line2 array: [1, 2, 3]

Usage

ndjson < file
tail -f file | ndjson
docker logs --tail 100 -f container 2>&1 | ndjson
kubectl logs --tail 100 -f pod | ndjson

Install

With cargo

cargo install ndjson

From binaries

Download the prebuilt binaries from the Releases page.

Dependencies

~1.8–9.5MB
~82K SLoC