Yngvarr

Generation

generate functionSat, 04 Feb 2023

open and save json file

function saveToJson(path, data) { fs.writeFile(path, data, err => { console.log(err); }); } function openFromJson(path) { return JSON.parse(fs.readFileSync(path).toString()); }

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant