Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created April 3, 2016 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuck0523/a5794d1aa136b945c250581d2579bdc1 to your computer and use it in GitHub Desktop.
Save chuck0523/a5794d1aa136b945c250581d2579bdc1 to your computer and use it in GitHub Desktop.
var fs = require('fs')
fs.watch('index.js', function(event, filename) {
console.log(event + ' to ' + filename)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment