Skip to content

Commit 881aff4

Browse files
committed
json indent with 2 spaces instead of tab
1 parent a92544f commit 881aff4

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, null, '\t'));
36+
fs.writeFileSync(file, JSON.stringify(data, null, 2));
3737
console.log(`successfully saved data from ${url} to ${file}`);
3838
});
3939
}catch(error){

0 commit comments

Comments
 (0)