$ npm install -g node-gyp
$ npm install fstime
const fstime = require('fstime');
fstime.utimesSync(pathToFile, 1496671445880.493406, 1496671445880.493406);
//1496671445880.493406:
// 1496671445880 - milliseconds
// 493406 - nano part
// or this example :
fstime.utimesSync(pathToFile, 1496671445880493406, 1496671445880493406);
let stats = fstime.statsSync(pathToFile);
// stats Object fs.Stats
$ npm install
$ jest
Copyright (c) 2017 Maxim Jarusov