# describer

> 用于描述一个对象的库

Latest version **1.2.4** (published 2021-12-25) · Apache-2.0 license · 0 weekly downloads

## Install

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

## 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.2.4 |
| Published | 2021-12-25 |
| First published | 2021-11-23 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 58.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | konghayao |

## Links

- npm: https://www.npmjs.com/package/describer
- Repository: https://gitee.com/dongzhongzhidong/jspider
- npm.io page: https://npm.io/package/describer

## Dependencies (2)

- [lodash-es](https://npm.io/package/lodash-es.md) ^4.17.21
- [node-fetch](https://npm.io/package/node-fetch.md) ^3.1.0

## Recent versions

- 1.2.4 (latest) — 2021-12-25
- 1.2.2 — 2021-12-02
- 1.2.1 — 2021-12-02
- 1.2.0 — 2021-12-02
- 1.1.3 — 2021-11-26
- 1.1.2 — 2021-11-25
- 1.1.1 — 2021-11-25
- 1.1.0 — 2021-11-24
- 1.0.2 — 2021-11-24
- 1.0.1 — 2021-11-24
- 1.0.0 — 2021-11-23

## README

# Describer

用于描述一个对象的库

## 对象解构的快速描述 —— ObjectDescriber

```js
import { ObjectDescriber } from "describer";

const result = ObjectDescriber(YourObj);

console.log(result);
```

返回一个描述对象，描述对象包含了对 YourObj 的描述

## 记录对象更改过程的库 —— GitObject

```js
import { GitObject } from "describer";

const gitObject = new GitObject(initObj);
gitObject.add("data.list.tlist", 8080); // 1
gitObject.add("data.list.tlist", 9999); // 2
gitObject.delete("data.list.vlist"); // 3
gitObject.review(2); // 转换对象到 2 这个步骤
console.log(gitObject.get("data.list.vlist"));
console.log(gitObject.now); // 这个是现有的对象
```

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