r3-v2/node_modules/clone-stats
Theunis J. Botha 5f5bbac56e initial comit 2020-02-27 15:24:35 +01:00
..
LICENSE.md initial comit 2020-02-27 15:24:35 +01:00
README.md initial comit 2020-02-27 15:24:35 +01:00
index.js initial comit 2020-02-27 15:24:35 +01:00
package.json initial comit 2020-02-27 15:24:35 +01:00
test.js initial comit 2020-02-27 15:24:35 +01:00

README.md

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.