# cczxx-test

> ``` npm install ccunix-heima ``` ## 导入 ```js let ccunix = require('ccunix-heima') ```

Latest version **1.0.0** (published 2023-04-04) · ISC license · 0 weekly downloads

## Install

```sh
npm install cczxx-test
pnpm add cczxx-test
yarn add cczxx-test
bun add cczxx-test
```

## 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.0 |
| Published | 2023-04-04 |
| First published | 2023-04-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | zxxzuimei |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2023-04-04

## README

## 安装
```
npm install ccunix-heima
```
## 导入
```js
let ccunix = require('ccunix-heima')
```

## 格式化时间
```js
// 调用dateFormat 对事件格式化
// 结果: 2022-03-27 09:51:57
console.log(ccunix.dateFormat(new Date()));
```

## 转换html中的特殊字符
```js
let html = '<h1 align="center">你好啊，&nbsp;孩子们</h1>';
// 调用htmlEscape方法进行html字符串转换
let htmlScape = ccunix.htmlEscape(html)
// 输出结果 &lth1 align=&quotcenter&quot&gt你好啊，&ampnbsp;孩子们&lt/h1&gt
console.log(htmlScape);
```

## 还原HTML中的特殊字符
```js
// 待还原的html字符串
let htmlUnScape = ccunix.htmlUnEscape(htmlScape);
// 输出结果 <h1 align="center">你好啊，&nbsp;孩子们</h1>
console.log(htmlUnScape);
```

# 开源协议
IIS

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