Skip to content

Commit

Permalink
json indent with 2 spaces instead of tab
Browse files Browse the repository at this point in the history
  • Loading branch information
gautemo committed Mar 28, 2020
1 parent a92544f commit 881aff4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ try{
})
.then(data => {
makeSureFoldersAreCreated(file);
fs.writeFileSync(file, JSON.stringify(data, null, '\t'));
fs.writeFileSync(file, JSON.stringify(data, null, 2));
console.log(`successfully saved data from ${url} to ${file}`);
});
}catch(error){
Expand Down

0 comments on commit 881aff4

Please sign in to comment.