# clone-stats

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

Latest version **1.0.0** (published 2016-05-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install clone-stats
pnpm add clone-stats
yarn add clone-stats
bun add clone-stats
```

## Health

**Score 23/100 (F)** — status: abandoned.

Positive: has types package; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-05-17 |
| First published | 2014-01-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | separate (@types/clone-stats) |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | Hugh Kennedy |
| Maintainers | hughsk |
| Keywords | stats, fs, clone, copy, prototype |

## Links

- npm: https://www.npmjs.com/package/clone-stats
- Repository: https://github.com/hughsk/clone-stats
- Issues: https://github.com/hughsk/clone-stats/issues
- npm.io page: https://npm.io/package/clone-stats

## Alternatives

- [unionfs](https://npm.io/package/unionfs.md) — 2.2M weekly downloads
- [path-starts-with](https://npm.io/package/path-starts-with.md) — 35.9K weekly downloads
- [redzip](https://npm.io/package/redzip.md) — 1.2K weekly downloads
- [vscode-anymatch](https://npm.io/package/vscode-anymatch.md) — 848 weekly downloads
- [@ledgerhq/coin-filecoin](https://npm.io/package/@ledgerhq/coin-filecoin.md) — 793 weekly downloads

## Recent versions

- 1.0.0 (latest) — 2016-05-17
- 0.0.1 — 2014-01-11
- 0.0.0 — 2014-01-11

## README

# clone-stats [![Flattr this!](https://api.flattr.com/button/flattr-badge-large.png)](https://flattr.com/submit/auto?user_id=hughskennedy&url=http://github.com/hughsk/clone-stats&title=clone-stats&description=hughsk/clone-stats%20on%20GitHub&language=en_GB&tags=flattr,github,javascript&category=software)[![experimental](http://hughsk.github.io/stability-badges/dist/experimental.svg)](http://github.com/hughsk/stability-badges) #

Safely clone node's
[`fs.Stats`](http://nodejs.org/api/fs.html#fs_class_fs_stats) instances without
losing their class methods, i.e. `stat.isDirectory()` and co.

## Usage ##

[![clone-stats](https://nodei.co/npm/clone-stats.png?mini=true)](https://nodei.co/npm/clone-stats)

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

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

## License ##

MIT. See [LICENSE.md](http://github.com/hughsk/clone-stats/blob/master/LICENSE.md) for details.

---
_Source: https://npm.io/package/clone-stats · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
