What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-10 04:05:02
node js store add values in file
var fs = require('fs'); var myOptions = { name: 'Avian', dessert: 'cake' flavor: 'chocolate', beverage: 'coffee' }; var data = JSON.stringify(myOptions); fs.writeFile('./config.json', data, function (err) { if (err) { console.log('There h... Add solution