clone-stats ![Flattr this!](https://camo.githubusercontent.com/f0d58d797e61b600bb2f7c88ff44967c2e62291d00873cb1d310ebde4812eede/68747470733a2f2f6170692e666c617474722e636f6d2f627574746f6e2f666c617474722d62616467652d6c617267652e706e67)
![experimental](https://camo.githubusercontent.com/11ce7fd952f2eae4e5467c7f6421660a373d19029c1ca071eb74c16669d2bff1/687474703a2f2f68756768736b2e6769746875622e696f2f73746162696c6974792d6261646765732f646973742f6578706572696d656e74616c2e737667)
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.