clone-stats

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

MIT 3 个版本
安装
npm install clone-stats
yarn add clone-stats
pnpm add clone-stats
bun add clone-stats
README

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.

版本列表
1.0.0 2016-05-17
0.0.1 2014-01-11
0.0.0 2014-01-11