wallet-core/node_modules/gulp-util/node_modules/clone-stats
2016-11-03 01:33:53 +01:00
..
index.js node_modules 2016-11-03 01:33:53 +01:00
LICENSE.md node_modules 2016-11-03 01:33:53 +01:00
package.json node_modules 2016-11-03 01:33:53 +01:00
README.md node_modules 2016-11-03 01:33:53 +01:00
test.js node_modules 2016-11-03 01:33:53 +01:00

clone-stats Flattr this!experimental

Safely clone node's fs.Stats instances without losing their class methods, i.e. stat.isDirectory() and co.

Usage

clone-stats

copy = require('clone-stats')(stat)

Returns a clone of the original fs.Stats instance (stat).

License

MIT. See LICENSE.md for details.