# @jslib-book/type

> 实现JavaScript引用对象的深拷贝功能

Latest version **1.0.2** (published 2022-05-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install @jslib-book/type
pnpm add @jslib-book/type
yarn add @jslib-book/type
bun add @jslib-book/type
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2022-05-01 |
| First published | 2022-01-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | yanhaijing |
| Maintainers | yanhaijing |

## Links

- npm: https://www.npmjs.com/package/@jslib-book/type
- npm.io page: https://npm.io/package/@jslib-book/type

## Recent versions

- 1.0.2 (latest) — 2022-05-01
- 1.0.1 — 2022-02-22
- 1.0.0 — 2022-01-04

## README

### 功能介绍
实现JavaScript引用对象的深拷贝功能

### 使用者指南

通过npm下载安装代码

```bash
$ npm install --save clone
```

如果你是node环境

```js
var { clone } = require('clone');

clone({a: 1})
```

如果你是webpack等环境

```js
import { clone } from 'clone';

clone({a: 1})
```

如果你是浏览器环境

```html
<script src="node_modules/clone/dist/index.aio.js"></script>
<script>
    clone({a: 1})
</script>
```

### 贡献者指南
首次运行需要先安装依赖

```bash
$ npm install
```

一键打包生成生产代码

```bash
$ npm run build
```

运行单元测试:

```bash
$ npm test

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