Socket
Book a DemoInstallSign in
Socket

file-should-change

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

file-should-change

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

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

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


Keywords

change

FAQs

Package last updated on 12 Aug 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts