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); }