write json file in node js
function writeJsonFile(file, content) {
let jsonData = JSON.stringify(content)
fs.writeFileSync(file, jsonData)
}
write json file in node js
function writeJsonFile(file, content) {
let jsonData = JSON.stringify(content)
fs.writeFileSync(file, jsonData)
}
how to use json file in nodejs
D:\NodeJs>node readsync.js
*START*
Output Content:
/* content here */
*EXIT*
// Define JSON File
var fs = require("fs");
console.log("\n *STARTING* \n");
// Get content from file
var
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us