0.0.4 • Published 8 years ago

file-birth-at v0.0.4

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

#File-Birth-At

a simple util for get file "birth time" in a silly way.

return the earliest time among birthtime, mtime, ctime in the range of [new Date(0), now) by default.

usage

const fba = require('file-birth-at');

fba(filepath, (err, time) => {
  console.log(time);
});

fba(filepath, new Date('1990-01-01'), new Date('1999-01-01'), (err, time) => {
  console.log(time);
});

try {
  fba.sync(filepath)
} catch (e) {
  console.error('something went wrong');
}
0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago