Guest User

Untitled

a guest
Mar 20th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. fs.readFile(
  2. './config.json',
  3. (err, data) => {
  4. let json = JSON.parse(data);
  5. json.externalURL = bs.utils.devIp.shift();
  6. fs.writeFile('./config.json', JSON.stringify(json), err => {
  7. if (err) {
  8. throw err;
  9. }
  10. })
  11. })
Add Comment
Please, Sign In to add comment