# it-test-lgz

> 提供了时间格式化、HTMLEscape相关功能

Latest version **1.0.1** (published 2023-08-31) · 0 weekly downloads

## Install

```sh
npm install it-test-lgz
pnpm add it-test-lgz
yarn add it-test-lgz
bun add it-test-lgz
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-08-31 |
| First published | 2023-08-31 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | luoguozhi |
| Keywords | it-test-lgz, dateFormat, lgz |

## Links

- npm: https://www.npmjs.com/package/it-test-lgz
- npm.io page: https://npm.io/package/it-test-lgz

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2023-08-31
- 1.0.0 — 2023-08-31

## README

## 安装
```
npm install it-test-lgz
```

## 导入
``` js
const date = require('it-test-lgz')

```
## 格式化时间
``` js
// 调用dateFormat 对时间进行格式化
const dtStr = date.dateFormat(new Date())
// 输出结果 2023-08-31 18:52:08
console.log(dtStr)
```

## 转义 HTML 中的特殊字符
``` js
// 引入
const html = require('it-test-lgz')
// 调用 htmlEscape
const str = html.htmlEscape('<h1>这是一个 "demo"</h1>')
// 输出结果 &lt;h1&gt;这是一个&nbsp;&quot;demo&quot;&lt;/h1&gt;
console.log(str)
```

## 解析 HTML 中的实义字符
``` js
// 引入
const html = require('it-test-lgz')
// 调用 htmlEscape
const str = html.htmlUnEscape('&lt;h1&gt;这是一个&nbsp;&quot;demo&quot;&lt;/h1&gt;')
// 输出结果 <h1>这是一个 "demo"</h1>
console.log(str)

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