Advertisement
Guest User

Untitled

a guest
Jul 7th, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var fs = require('fs');
  2.  
  3. console.log(require('./json.json'));
  4.  
  5. fs.writeFile('./json.json', '{ "type": "' + Math.floor(Math.random()*16777215).toString(16) + '" }', 'utf-8', function () {
  6.     console.log(require('./json.json'));
  7. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement