file-expires

Get a notification when a file expires or changes.

npm install file-expires
10 downloads in the last week
11 downloads in the last month

File expires

Get a notification when a file expires or changes.

Example

var createFileExpirer = require('./')

var file = createFileExpirer('https://github.com/favicon.ico')

var content

file.on('expires', function() {
  console.log('expired')
  file.readFile(function(err, c) {
    content = c
  })
})

file.on('change', function() {
  console.log('changed')
})


file.readFile(function(err, c) {
  content = c
})

Install

npm install file-expires

Licence

MIT

npm loves you