ischanged
Is file changed check
Last updated 10 years ago by coderaiser .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install ischanged 
SYNC missed versions from official npm registry.

Ischanged NPM version Dependency Status Build Status Coverage Status

Check time of file modification. If it's changed probable file was changed to. There is no 100% assurance that is was, but it works much faster then check by hash.

Install

npm i ischanged --save

Hot to use?

const ischanged = require('ischanged');

const is = await ischanged('/etc/passwd');
// returns
true

await ischanged('/etc/passwd');
// returns
false

How it works?

Ischanged saves time of file modification to file ischanged/<uid>/changes.json in Temp directory and then checks whas it changed or not.

So it something like watch but:

  • should be called by hand;
  • could detect modifications after restart of application;

License

MIT

Current Tags

  • 4.0.0                                ...           latest (4 years ago)

24 Versions

  • 4.0.0                                ...           4 years ago
  • 3.0.2                                ...           5 years ago
  • 3.0.1                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 2.0.0                                ...           7 years ago
  • 1.0.18                                ...           8 years ago
  • 1.0.17                                ...           9 years ago
  • 1.0.16                                ...           10 years ago
  • 1.0.15                                ...           10 years ago
  • 1.0.14                                ...           10 years ago
  • 1.0.13                                ...           10 years ago
  • 1.0.12                                ...           10 years ago
  • 1.0.11                                ...           10 years ago
  • 1.0.10                                ...           10 years ago
  • 1.0.9                                ...           10 years ago
  • 1.0.8                                ...           10 years ago
  • 1.0.7                                ...           10 years ago
  • 1.0.6                                ...           10 years ago
  • 1.0.5                                ...           10 years ago
  • 1.0.4                                ...           10 years ago
  • 1.0.3                                ...           10 years ago
  • 1.0.2                                ...           10 years ago
  • 1.0.1                                ...           10 years ago
  • 1.0.0                                ...           10 years ago
Maintainers (1)
Downloads
Total 1
Today 1
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (0)
None
Dependents (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE