# clonedeep

> Deep copy library for any data structure

Latest version **2.0.0** (published 2016-12-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install clonedeep
pnpm add clonedeep
yarn add clonedeep
bun add clonedeep
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2016-12-30 |
| First published | 2016-10-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Josh Ghent |
| Maintainers | joshghent |
| Keywords | deep, clone, copy, data, data structures, deep copy, deep clone |

## Links

- npm: https://www.npmjs.com/package/clonedeep
- Repository: https://github.com/joshghent/deepClone
- Homepage: https://github.com/joshghent/deepClone#readme
- Issues: https://github.com/joshghent/deepClone/issues
- npm.io page: https://npm.io/package/clonedeep

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2016-12-30
- 1.2.0 — 2016-10-14
- 1.0.0 — 2016-10-11

## README

# Deep Clone ![Build Status](https://travis-ci.org/joshghent/deepClone.svg?branch=master)

A single method library used for cloning any sort of data structure in javascript!

[![NPM](https://nodei.co/npm/clonedeep.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/clonedeep/)

## Usage
```js
// Import
const clone = require('deepClone');

let objectArray = [{ a: 0, b: 2}, { a: 3, b: 5}];

let clonedObjectArray = clone(objectArray);

objectArray[0][a] = 6;
// => [{ a: 6, b: 2}, { a: 3, b: 5}];

console.log(clonedObjectArray);
// => [{ a: 0, b: 2}, { a: 3, b: 5}]
```

## Contributing
``` bash
# Clone the project locally 
git clone git@github.com:joshghent/deepClone.git deepClone

# Change directory
cd deepClone

# Install dependancies
npm install

# Make your changes + add a test for the new feature or bug you found!
# then...
git add -A && git commit -m "Added an awwwwesome feature." && git push origin master
```
Finally submit a pull request and grab a cup of tea whilst pondering how kickass you feel to be part of the open source community!

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