root 3bf41bf355 update | 1 rok pred | |
---|---|---|
.. | ||
LICENSE.md | 1 rok pred | |
README.md | 1 rok pred | |
index.js | 1 rok pred | |
package.json | 1 rok pred | |
test.js | 1 rok pred |
Safely clone node's
fs.Stats
instances without
losing their class methods, i.e. stat.isDirectory()
and co.
copy = require('clone-stats')(stat)
Returns a clone of the original fs.Stats
instance (stat
).
MIT. See LICENSE.md for details.