Skip to content

Instantly share code, notes, and snippets.

@bengourley
Created November 29, 2012 12:26
Show Gist options
  • Save bengourley/4168704 to your computer and use it in GitHub Desktop.
Save bengourley/4168704 to your computer and use it in GitHub Desktop.
var fs = require('fs')
, join = require('path').join
fs.watch(join(process.env.HOME, '.npmrc'), function () {
console.log('touched')
})
fs.utimes(join(process.env.HOME, '.npmrc'), new Date(), new Date())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment