Thanks in advance.
Thanks in advance.
On the node, you can do the following:
const fs = require("fs");
const file = "/home/user/Documents/foo.json";
if (!fs.existsSync(file)) {
fs.writeFileSync(file, JSON.stringify({hello: "World"));
}
The script checks and the file exists and otherwise creates with an illustrative object.