We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
So for example could I do something like:
var file = fs.createReadStream('dogs.json'); file.pipe(prettyjson.render).pipe(response);
The text was updated successfully, but these errors were encountered:
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.
Sorry, something went wrong.
I guess this is related to support stdin output that is separated by newlines (such as JSONStream.stringify(false))?
stdin
Would be a great feature :-)
A current workaround using the JSONStream package: JSONStream < data.njs | prettyjson.
JSONStream < data.njs | prettyjson
No branches or pull requests
So for example could I do something like:
The text was updated successfully, but these errors were encountered: