Skip to content
Advertisement

Tag: chokidar

Getting empty string from fs.readFile inside chokidar.watch(path_file).on(‘change’, …)

I have the following very simple Node project: https://github.com/tlg-265/chokidar-issue which basically takes care of detecting changes on file: /profiles/bill-gates.json and do an action just after that. In order to do that I have the following file: /profile-watcher.js when I run the project with: and do the modifications below on file: /profiles/bill-gates.json modification 1: Bill Gates -> Bill Gates ABC modification

Advertisement