# @livelybone/copy

> About clipboard copy, Object simple&deep copy

Latest version **2.6.6** (published 2023-07-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install @livelybone/copy
pnpm add @livelybone/copy
yarn add @livelybone/copy
bun add @livelybone/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 | 2.6.6 |
| Published | 2023-07-25 |
| First published | 2018-08-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 263.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | 2631541504@qq.com |
| Maintainers | livelybone |
| Keywords | clipboard, copy, object copy, object deep copy, object deep merge, copy image to clipboard |

## Links

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

## Alternatives

- [exif-parser](https://npm.io/package/exif-parser.md) — 3.8M weekly downloads
- [vite-plugin-compression](https://npm.io/package/vite-plugin-compression.md) — 569.5K weekly downloads
- [pica](https://npm.io/package/pica.md) — 442.4K weekly downloads
- [@reportportal/client-javascript](https://npm.io/package/@reportportal/client-javascript.md) — 408.8K weekly downloads
- [@tldraw/state](https://npm.io/package/@tldraw/state.md) — 316.0K weekly downloads

## Recent versions

- 2.6.6 (latest) — 2023-07-25
- 2.6.5 — 2020-05-30
- 2.6.4 — 2020-05-30
- 2.6.3 — 2020-05-08
- 2.6.2 — 2019-10-10
- 2.6.1 — 2019-10-10
- 2.6.0 — 2019-08-13
- 2.5.4 — 2019-03-18
- 2.5.3 — 2019-01-07
- 2.5.2 — 2018-12-28
- 2.5.1 — 2018-12-28
- 2.5.0 — 2018-12-26
- 2.4.1 — 2018-12-26
- 2.4.0 — 2018-12-25
- 2.3.0 — 2018-12-19
- … 7 more at https://npm.io/package/@livelybone/copy/versions

## README

# @livelybone/copy
[![NPM Version](http://img.shields.io/npm/v/@livelybone/copy.svg?style=flat-square)](https://www.npmjs.com/package/@livelybone/copy)
[![Download Month](http://img.shields.io/npm/dm/@livelybone/copy.svg?style=flat-square)](https://www.npmjs.com/package/@livelybone/copy)
![gzip with dependencies: 1.9kb](https://img.shields.io/badge/gzip--with--dependencies-1.9kb-brightgreen.svg "gzip with dependencies: 1.9kb")
![typescript](https://img.shields.io/badge/typescript-supported-blue.svg "typescript")
![pkg.module](https://img.shields.io/badge/pkg.module-supported-blue.svg "pkg.module")

> `pkg.module supported`, which means that you can apply tree-shaking in you project

About clipboard copy, Object simple&deep copy

## repository
https://github.com/livelybone/copy.git

## Demo
https://livelybone.github.io/tool/copy/

## Run Example
Your can see the usage by run the example of the module, here is the step:

1. Clone the library `git clone https://github.com/livelybone/copy.git`
2. Go to the directory `cd your-module-directory`
3. Install npm dependencies `npm i`(use taobao registry: `npm i --registry=http://registry.npm.taobao.org`)
4. Open service `npm run dev`
5. See the example(usually is `http://127.0.0.1/examples/test.html`) in your browser

## Installation
```bash
npm i -S @livelybone/copy
```

## Global name
`Copy`

## Interface
See in [index.d.ts](./index.d.ts)

## Import
```js
import {
  copyDom,
  copyText,
  objectSimpleCopy,
  objectDeepCopy,
  objectDeepMerge,
  isCircularStructure,
} from '@livelybone/copy';
```

Use in html, see what your can use in [CDN: unpkg](https://unpkg.com/@livelybone/copy/lib/umd/)
```html
<-- use what you want -->
<script src="https://unpkg.com/@livelybone/copy/lib/umd/<--module-->.js"></script>
```

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