# json-deep-copy

> faster deep-copy for json style data

Latest version **1.3.1** (published 2023-08-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install json-deep-copy
pnpm add json-deep-copy
yarn add json-deep-copy
bun add json-deep-copy
```

## Health

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

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

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.3.1 |
| Published | 2023-08-31 |
| First published | 2017-05-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 7.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ZHAO Xudong |
| Maintainers | zxdong262 |
| Keywords | deep-copy, json |

## Links

- npm: https://www.npmjs.com/package/json-deep-copy
- Repository: https://github.com/zxdong262/deep-copy
- Homepage: https://github.com/zxdong262/deep-copy#readme
- Issues: https://github.com/zxdong262/deep-copy/issues
- npm.io page: https://npm.io/package/json-deep-copy

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 1.3.1 (latest) — 2023-08-31
- 1.3.0 — 2023-07-16
- 1.2.2 — 2023-07-16
- 1.2.1 — 2023-07-16
- 1.2.0 — 2023-07-16
- 1.1.8 — 2022-04-17
- 1.1.7 — 2022-04-17
- 1.1.6 — 2021-01-22
- 1.1.5 — 2020-12-03
- 1.1.4 — 2020-12-03
- 1.1.3 — 2020-12-03
- 1.1.2 — 2020-12-03
- 1.1.1 — 2019-10-22
- 1.1.0 — 2019-10-20
- 1.0.2 — 2017-12-11
- … 2 more at https://npm.io/package/json-deep-copy/versions

## README

# json-deep-copy

[![Build Status](https://github.com/zxdong262/deep-copy/actions/workflows/linux.yml/badge.svg)](https://github.com/zxdong262/deep-copy/actions)
[![codecov](https://codecov.io/gh/zxdong262/deep-copy/branch/master/graph/badge.svg?token=FPmt8WGuJs)](https://codecov.io/gh/zxdong262/deep-copy)

Faster deep-copy for json style object.

## Features

- Simplified lodash.deepClone, maybe 15 times faster when copy many compilcated objects.
- Only support plain objects with number, string, array, boolean

## Use

```bash
npm i json-deep-copy
```

```js
const deepCopy = require('json-deep-copy')
// or
import deepCopy from 'json-deep-copy'

let deepCopyedObj = deepCopy(someObj)
```

## Dev || test || benchmark

```bash
git clone git@github.com:zxdong262/deep-copy.git
cd deep-copy
npm i

# test
npm run test

# benchmark
npm run benchmark
```

## LICENSE

MIT

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