From 90898f5d8bd3490f7af10e69349bec62850956e5 Mon Sep 17 00:00:00 2001 From: azabroflovski Date: Fri, 15 Apr 2022 18:20:11 +0500 Subject: [PATCH] feat: beatufiy output json --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 2c0e7c8..ca3c26f 100644 --- a/index.js +++ b/index.js @@ -57,7 +57,7 @@ async function init() { }; if (needSave) { - fs.writeFile(FILE_NAME, JSON.stringify(data), (err, data) => { + fs.writeFile(FILE_NAME, JSON.stringify(data, null, 2), (err, data) => { if (err) { return console.error('Write file error', err); }