beautify JSON output

This commit is contained in:
btzr-io 2018-02-23 18:07:31 -07:00
parent 2cf94ca8af
commit 921f89b076

View file

@ -1,4 +1,5 @@
const parseJson = data => JSON.stringify(data);
// Beautify JSON
const parseJson = data => JSON.stringify(data, null, "\t");
// No need for an external module:
// https://gist.github.com/btzr-io/55c3450ea3d709fc57540e762899fb85