ndjson

Crates.iondjson
lib.rsndjson
version0.2.0
sourcesrc
created_at2021-11-13 00:45:24.640949
updated_at2021-11-20 18:46:04.163383
descriptionFormats and colorizes newline delimited JSON for better readability.
homepage
repositoryhttps://github.com/rojul/ndjson
max_upload_size
id481224
size18,594
Julian (rojul)

documentation

README

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.

Commit count: 11

cargo fmt