Files
espurna/code/html/vendor/clone-stats-node22
Maxim Prokhorov 43eefd6124 webui(build): sync dependencies
build output is the same as before, no need to recreate blobs
attempt to fix clone-stats-node22 name field sometimes appearing in lockfile
2025-05-06 01:08:09 +03:00
..
2025-05-06 01:08:09 +03:00

clone-stats

Safely clone node's fs.Stats instances without losing their class methods, i.e. stat.isDirectory() and co.

This is a fork of hughsk/clone-stats but adapted to work on Node v22+ without a deprecation warning

Usage

clone-stats

copy = require('clone-stats')(stat)

Returns a clone of the original fs.Stats instance (stat).

Monkey-patching other modules that depend on the original version

require('module-alias').addAlias('clone-stats', 'clone-stats-node22');

License

MIT. See LICENSE.md for details.