# deep-copy

> Deep copy objects and arrays

Latest version **1.4.2** (published 2018-01-11) · MIT license · 0 weekly downloads

## Install

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

## Health

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

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

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.4.2 |
| Published | 2018-01-11 |
| First published | 2013-04-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=4.0.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 34 |
| Author | Simeon Velichkov |
| Maintainers | simov |
| Keywords | deep, copy, object, array |

## Links

- npm: https://www.npmjs.com/package/deep-copy
- Repository: https://github.com/simov/deep-copy
- Issues: https://github.com/simov/deep-copy/issues
- npm.io page: https://npm.io/package/deep-copy

## Recent versions

- 1.4.2 (latest) — 2018-01-11
- 1.4.1 — 2017-12-30
- 1.4.0 — 2017-08-22
- 1.3.0 — 2017-08-16
- 1.2.0 — 2016-12-17
- 1.1.2 — 2016-05-02
- 1.1.1 — 2016-04-25
- 1.1.0 — 2015-09-04
- 1.0.0 — 2013-04-14

## README

# deep-copy

[![npm-version]][npm] [![travis-ci]][travis] [![coveralls-status]][coveralls]


```js
var dcopy = require('deep-copy')

// deep copy object
var copy = dcopy({a: {b: [{c: 5}]}})

// deep copy array
var copy = dcopy([1, 2, {a: {b: 5}}])
```

### [Benchmarks][benchmarks]

Benchmarks comparing `deep-copy` to other libraries across all Node LTS versions.

  [npm-version]: https://img.shields.io/npm/v/deep-copy.svg?style=flat-square (NPM Version)
  [travis-ci]: https://img.shields.io/travis/simov/deep-copy/master.svg?style=flat-square (Build Status)
  [coveralls-status]: https://img.shields.io/coveralls/simov/deep-copy.svg?style=flat-square (Test Coverage)

  [npm]: https://www.npmjs.com/package/deep-copy
  [travis]: https://travis-ci.org/simov/deep-copy
  [coveralls]: https://coveralls.io/r/simov/deep-copy?branch=master
  [benchmarks]: https://github.com/ahmadnassri/benchmark-node-clone

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