Skip to content

Commit

Permalink
Update toJson.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mazipan authored Oct 19, 2020
1 parent 4074b50 commit f63cc1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions toJson.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit f63cc1d

Please sign in to comment.