You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Question - Is there any way to use .pipe() in NodeJS with prettyjson #18
Activity
rafeca commentedon Aug 9, 2015
Using streams is not currently supported, as prettyjson decodes the whole JSON data at once.
Something similar to reading the process stdin could be done for streams.
tjconcept commentedon Aug 25, 2016
I guess this is related to support
stdinoutput that is separated by newlines (such as JSONStream.stringify(false))?Would be a great feature :-)
A current workaround using the JSONStream package:
JSONStream < data.njs | prettyjson.