trim-object-stream

stream that trims all whitspace from keys and values

Usage no npm install needed!

<script type="module">
  import trimObjectStream from 'https://cdn.skypack.dev/trim-object-stream';
</script>

README

trim-object-stream

stream that trims all whitespace from keys and values on the top level of an object

NPM

usage

$ cat line-delimited-json.json | trim-object-stream

example

$ echo 

{" foo ":" bar ", " baz ": { " qux ": 1 }}' | trim-object-stream
{"foo":"bar","baz":{"qux":1}}