1.1.0 • Published 10 years ago
trim-object-stream v1.1.0
trim-object-stream
stream that trims all whitespace from keys and values on the top level of an object
usage
$ cat line-delimited-json.json | trim-object-stream
example
$ echo $'{" foo ":" bar ", " baz ": { " qux ": 1 }}' | trim-object-stream
{"foo":"bar","baz":{"qux":1}}