Skip to content

Commit a92544f

Browse files
committed
creates readable json
1 parent f43bd25 commit a92544f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ try{
3333
})
3434
.then(data => {
3535
makeSureFoldersAreCreated(file);
36-
fs.writeFileSync(file, JSON.stringify(data));
36+
fs.writeFileSync(file, JSON.stringify(data, null, '\t'));
3737
console.log(`successfully saved data from ${url} to ${file}`);
3838
});
3939
}catch(error){

0 commit comments

Comments
 (0)