stats-cloner
v1.1.0
Published
Create reliable copies of Node.js fs.Stats objects, ensuring all original methods are preserved.
Downloads
8
Maintainers
Readme
stats-cloner
Clone Node.js fs.Stats
objects securely, retaining all class methods such as stat.isDirectory()
and more.
Usage
copy = require('stats-cloner')(stat)
Returns a clone of the original fs.Stats
instance (stat
).
License
MIT. See LICENSE.md for details.