SyntaxFix
Write A Post
Hire A Developer
Questions
Make the json human readable by passing a third argument to stringify:
stringify
fs.writeFileSync('../data/phraseFreqs.json', JSON.stringify(output, null, 4));