From f63cc1d125d1fa05ccf60fe05fde960c58473bb0 Mon Sep 17 00:00:00 2001 From: Irfan Maulana Date: Mon, 19 Oct 2020 10:14:08 +0700 Subject: [PATCH] Update toJson.js --- toJson.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toJson.js b/toJson.js index ca1a8bcf..51f8a00c 100644 --- a/toJson.js +++ b/toJson.js @@ -116,9 +116,9 @@ const main = async () => { }) .get(); - writeFile('./all-talks.json', JSON.stringify(objResult)); - writeFile('./all-talks.js', `export default ${JSON.stringify(objResult)}`); - writeFile('./all-talks-node.js', `module.exports = ${JSON.stringify(objResult)}`); + writeFile('./all-talks.json', JSON.stringify(objResult, null, 2)); + writeFile('./all-talks.js', `export default ${JSON.stringify(objResult, null, 2)}`); + writeFile('./all-talks-node.js', `module.exports = ${JSON.stringify(objResult, null, 2)}`); } catch (error) { console.error('❌ Error read file README.md', error); }