auto reload a json file when it's changed without restart your project
npm install json-watchauto reload a json file when it's changed without restart your project
jsonWatcher.get() to access your datafile.json is changed, the value of jsonWatcher.get() will auto reload, no need to restart your projectvar json = jsonWatcher.get(); console.log(json);. otherwise the json will not change when the file changed