timepiece/node_modules/clone-stats
2024-05-14 09:54:12 -05:00
..
index.js Initial code commit 2024-05-14 09:54:12 -05:00
LICENSE.md Initial code commit 2024-05-14 09:54:12 -05:00
package.json Initial code commit 2024-05-14 09:54:12 -05:00
README.md Initial code commit 2024-05-14 09:54:12 -05:00
test.js Initial code commit 2024-05-14 09:54:12 -05: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.