4.0.0 • Published 3 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
3 years ago
3.0.2
4 years ago
3.0.1
4 years ago
3.0.0
4 years ago
2.0.0
6 years ago
1.0.18
8 years ago
1.0.17
8 years ago
1.0.16
9 years ago
1.0.15
9 years ago
1.0.14
9 years ago
1.0.13
9 years ago
1.0.12
9 years ago
1.0.11
9 years ago
1.0.10
9 years ago
1.0.9
9 years ago
1.0.8
9 years ago
1.0.7
9 years ago
1.0.6
9 years ago
1.0.5
9 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