I’m tring to update a .json file using this code:
const low = require('lowdb') const FileSync = require('lowdb/adapters/FileSync') const adapter = new FileSync('db.json') const db = low(adapter) var database = require("./db.json"); db.set('count', database.count+1) .write()
the problem is its keep the data but only after I do refresh in the console.
is there a way to make it refresh the editor after I run the code?