# @jtemplate/parser

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

Latest version **1.0.3** (published 2022-05-02) · MIT license · 0 weekly downloads

## Install

```sh
npm install @jtemplate/parser
pnpm add @jtemplate/parser
yarn add @jtemplate/parser
bun add @jtemplate/parser
```

## 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.3 |
| Published | 2022-05-02 |
| First published | 2022-05-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 20.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | jtemplate |
| Maintainers | yanhaijing |

## Links

- npm: https://www.npmjs.com/package/@jtemplate/parser
- npm.io page: https://npm.io/package/@jtemplate/parser

## Recent versions

- 1.0.3 (latest) — 2022-05-02

## README

### @jtemplate/parser ![example workflow](https://github.com/jtemplate/parser/actions/workflows/ci.yml/badge.svg)

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

### 使用者指南

通过 npm 下载安装代码

```bash
$ npm install --save @jtemplate/parser
```

如果你是 node 环境

```js
var { clone } = require('@jtemplate/parser');

clone({ a: 1 });
```

如果你是 webpack 等环境

```js
import { clone } from '@jtemplate/parser';

clone({ a: 1 });
```

如果你是浏览器环境

```html
<script src="node_modules/@jtemplate/parser/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/@jtemplate/parser · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
