From f078d479b085e8658fb2039eb3e4de49afd9db0e Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 22 Mar 2017 09:47:13 -0600 Subject: [PATCH] prettier JSON --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 4b2f212..a58cffa 100644 --- a/index.js +++ b/index.js @@ -337,7 +337,7 @@ var form = { , println: function (rrs, ws, msg) { if ('string' !== typeof msg) { - msg = JSON.stringify(msg); + msg = JSON.stringify(msg, null, 2); } return ws.write(msg + '\n'); }