1/*
2 This code comes from Vincent Lab
3 And it has a video version linked here: https://www.youtube.com/watch?v=dR--FnRoYh0
4*/
5
6// Import dependencies
7const fs = require("fs");
8
9// Load the config
10const config = require("./config.json");
11
12// Show the config
13console.log(config);
14
15// Modify the config
16config.apiKey = "gj3j#4K321hIO"; // 2i3f2399g23y43q9o
17
18// Saved the config
19fs.writeFile("./config.json", JSON.stringify(config), function (err, file) {
20 if (err) throw err;
21 console.log("Saved!");
22});