4.0.0 • Published 4 years ago
ischanged v4.0.0
Ischanged

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
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
9 years ago
1.0.17
10 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
11 years ago
1.0.7
11 years ago
1.0.6
11 years ago
1.0.5
11 years ago
1.0.4
11 years ago
1.0.3
11 years ago
1.0.2
11 years ago
1.0.1
11 years ago
1.0.0
11 years ago