# plain-object-clone

> Extremely fast function optimized for deep cloning json-serializable plain objects.

Latest version **2.0.1** (published 2025-01-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install plain-object-clone
pnpm add plain-object-clone
yarn add plain-object-clone
bun add plain-object-clone
```

## Health

**Score 40/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2025-01-18 |
| First published | 2019-10-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | fabiospampinato |
| Keywords | fast, plain, object, deep, clone |

## Links

- npm: https://www.npmjs.com/package/plain-object-clone
- Repository: https://github.com/fabiospampinato/plain-object-clone
- Homepage: https://github.com/fabiospampinato/plain-object-clone#readme
- Issues: https://github.com/fabiospampinato/plain-object-clone/issues
- npm.io page: https://npm.io/package/plain-object-clone

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 2.0.1 (latest) — 2025-01-18
- 2.0.0 — 2022-04-14
- 1.1.0 — 2019-10-05
- 1.0.0 — 2019-10-05

## README

# Plain Object Clone

Extremely fast function optimized for deep cloning json-serializable plain objects.

## Install

```sh
npm install plain-object-clone
```

## Usage

```ts
import clone from 'plain-object-clone';

// Let's clone an object

clone ({ foo: 123 }); // => { foo: 123 }
```

## License

MIT © Fabio Spampinato

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