wentout / fstime

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fstime

Install

$ npm install -g node-gyp
$ npm install fstime

Examples

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

Tests

$ npm install
$ mocha

Credits

License

The MIT License

Copyright (c) 2017 Maxim Jarusov

About


Languages

Language:JavaScript 55.9%Language:C++ 41.1%Language:Python 3.0%