file-should-change

1.0.0 • Public • Published

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){
  
})

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    2

Package Sidebar

Install

npm i file-should-change

Weekly Downloads

2

Version

1.0.0

License

ISC

Last publish

Collaborators

  • soldair