# copy-data

> A module to use to copy data for React, so you can then mutate them into ninja turtles or x-men.

Latest version **0.1.2** (published 2018-05-23) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2018-05-23 |
| First published | 2018-05-23 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 36 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alice Maldonado |
| Maintainers | nitrogen |
| Keywords | React, data, copy |

## Links

- npm: https://www.npmjs.com/package/copy-data
- Repository: https://github.com/alice-em/copy-data
- Homepage: https://github.com/alice-em/copy-data#readme
- Issues: https://github.com/alice-em/copy-data/issues
- npm.io page: https://npm.io/package/copy-data

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2018-05-23
- 0.1.1 — 2018-05-23
- 0.1.0 — 2018-05-23

## README

```
npm install copy-data --save
```

Example
```javascript
const copy = require('copy-data');
const obj = {
  coffee: ['iced', 'double', 'soy', 'vanilla'],
  nachos: true,
  pizza: 5,
  salad: null,
  sushi: 'always'
};

const objCopy = copy.object(obj);
console.log(obj === objCopy) // false
```

Included methods:
```javascript
copy.array(arr);
copy.func(func);
copy.object(obj);
copy.string(string); // Still renders true, but I think it is because it checks value instead of memory location
```

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