Skip to content

Commit ae99efa

Browse files
committed
fixed writing stringified text
1 parent b51f2bf commit ae99efa

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

0 commit comments

Comments
 (0)