# duper

> Standalone functions for creating shallow clones or deep clones.

Latest version **1.0.1** (published 2022-11-05) · 0 weekly downloads

## Install

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

## 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.0.1 |
| Published | 2022-11-05 |
| First published | 2022-11-05 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 28.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Maintainers | fabiospampinato |
| Keywords | clone, shallow, deep |

## Links

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

## Recent versions

- 1.0.1 (latest) — 2022-11-05
- 1.0.0 — 2022-11-05

## README

# Duper

Standalone functions for creating shallow clones or deep clones.

It supports comparing primitives, `Array`, `Map`, `Set`, `Date`, `RegExp`, `ArrayBuffer`, `DataView`, `Int8Array`, `Uint8Array`, `Uint8ClampedArray`, `Int16Array`, `Uint16Array`, `Int32Array`, `Uint32Array`, `Float32Array`, `Float64Array`, `BigInt64Array`, `BigUint64Array`, `Error`, `EvalError`, `RangeError`, `ReferenceError`, `SyntaxError`, `TypeError`, `URIError`, and plain objects, trying to clone anything else will throw.

## Install

```sh
npm install --save duper
```

## Usage

```ts
import {cloneShallow, cloneDeep} from 'duper';

cloneShallow ({ foo: { value: 123 } }); // => Shallow clone of the object
cloneDeep ({ foo: { value: 123 } }); // => Deep clone of the object
```

## License

MIT © Fabio Spampinato

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