Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var fs = require('fs');
- console.log(require('./json.json'));
- fs.writeFile('./json.json', '{ "type": "' + Math.floor(Math.random()*16777215).toString(16) + '" }', 'utf-8', function () {
- console.log(require('./json.json'));
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement