FlyUp/packages/字体精简工具/node_modules/clone-stats
2024-07-10 18:24:08 +08:00
..
index.js 增加分享 2024-07-10 18:24:08 +08:00
LICENSE.md 增加分享 2024-07-10 18:24:08 +08:00
package.json 增加分享 2024-07-10 18:24:08 +08:00
README.md 增加分享 2024-07-10 18:24:08 +08:00
test.js 增加分享 2024-07-10 18:24:08 +08: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.