Answers for "node file change event listener"

2

node file change event listener

fs.watch('foo', function (event, filename) {
  if (event == 'change') {
    // Load file content
    // Compare to one previously loaded
    // actualContent = newContent
  }
});
Posted by: Guest on February-28-2020

Code answers related to "node file change event listener"

Code answers related to "Javascript"

Browse Popular Code Answers by Language