SHARE
TWEET

Untitled

a guest Jun 15th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fs.writeFile("config.json", JSON.stringify({name: 'adman'tag: 'batsman',age: 25}), 'utf8',{ flag: "wx" }, function(err) {
  2.     if (err) {
  3.       return console.log(err);
  4.     }
  5.     console.log("The file was saved!");
  6.   });
  7.      
  8. const cricketers = [
  9.     {
  10.         name: 'adman',
  11.         tag: 'batsman',
  12.         age: 25
  13.     },
  14.     // other objects
  15. ]
  16.  
  17. module.exports = cricketers ;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top