express-ping
express-ping copied to clipboard
Show pretty JSON
Add an option to send a prettified/readable json.
Honestly, this should be the job of the client, e.g. a browser extension, or an independent /health
that shows a dashboard.
Hey, thanks for your feedback. Yes, this issue is low priority but it could improve the user experience in some scenarios (for example, if you use curl https://foo/health?pretty
) and it's quite easy to implement. I'm not going to develop it myself, but I'm open to contributions if somebody finds it useful.
I see. I think the following module can be used with just the normal json as input, then you can use the output in res.render.
https://www.npmjs.com/package/json-pretty-html