1.0.0 • Published 9 years ago

file-should-change v1.0.0

Weekly downloads
4
License
ISC
Repository
github
Last release
9 years ago

file-should-change

check to see if a file has changed since another file has been changed. useful for refreshing cache files.

EXAMPLE

var shouldChange = require('file-should-change')

// all.json gets updated at an interval

// week.json it the last week of changes which i need to update each time all.json gets updated

shouldChange('week.json','all.json',function(err,shouldChange){
  
})

// you can also pass a unixtimestamp in ms as a number instead of another file.

shouldChange('week.json',number timestamp ,function(err,shouldChange){
  
})