Generation

generate functionSat, 17 Dec 2022

read local file of json

var fs = require('fs'); var file = fs.readFileSync('./file.json'); var json = JSON.parse(file); console.log(json.name);

Javascript
Generate More

Questions about programming?Chat with your personal AI assistant