jspp-stream

json pretty print stream

Usage no npm install needed!

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

README

introduction

JSON pretty print stream

Usage

{"host":"127.0.0.1","ident":"-","user":"frank","time":"[10/Oct/2000:13:55:36 -0700]","req":"GET /apache_pb.gif HTTP/1.0","status":"200","size":"2326","referer":"http://www.example.com/start.html","ua":"Mozilla/4.08 [en] (Win98; I ;Nav)"}

will be

{
  "host": "127.0.0.1",
  "ident": "-",
  "user": "frank",
  "time": "[10/Oct/2000:13:55:36 -0700]",
  "req": "GET /apache_pb.gif HTTP/1.0",
  "status": "200",
  "size": "2326",
  "referer": "http://www.example.com/start.html",
  "ua": "Mozilla/4.08 [en] (Win98; I ;Nav)"
}

from stdin

$ cat test.json | jspp

from file

$ jspp /path/to/file.json

from web

$ jspp http://some.json.com

License

MIT

Author

Jxck https://github.com/Jxck