clone-stats

Safely clone node's fs.Stats instances without losing their class methods

MIT License

Downloads
15.6M
Stars
10
Committers
1

clone-stats Flattr this!experimental

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

Usage

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

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

License

MIT. See LICENSE.md for details.

Package Rankings
Top 3.59% on Npmjs.org
Top 32.56% on Repo1.maven.org
Badges
Extracted from project README
Flattr this! experimental