# ccunix-test01

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

Latest version **1.0.0** (published 2022-07-14) · ISC license · 0 weekly downloads

## Install

```sh
npm install ccunix-test01
pnpm add ccunix-test01
yarn add ccunix-test01
bun add ccunix-test01
```

## 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 | 2022-07-14 |
| First published | 2022-07-14 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | luck-nine |

## Links

- npm: https://www.npmjs.com/package/ccunix-test01
- npm.io page: https://npm.io/package/ccunix-test01

## Recent versions

- 1.0.0 (latest) — 2022-07-14

## README

## 安装
```
npm install ccunixheima
```
## 导入
```js
let ccunix = require('ccunix-heima')
```

## 格式化时间
```js
//调用dateFormat 对事件格式化
//结果：2022-7-14 18:40:48
console.log(ccunix.dateFormat(new Date()));
```

## 转换html中的特殊字符
```js
let html = '<div class="class1">我们都&nbsp;好好学习</div>';
// 调用htmlEscape方法进行html字符串转换
let htmlEscape = ccunix.htmlEscape(html);
// 输出结果 &ltdiv class=&quotclass&quot&gt我们都&ampnbsp;好好学习&lt/div&gt
console.log(htmlEscape);
```

## 还原HTML中的特殊字符
```js
//待还原的html字符串
let htmlUnEscape = ccunix.htmlUnEscape(htmlEscape);
//输出结果 <div class="class1">我们都&nbsp;好好学习</div>
console.log(htmlUnEscape);
```

# 开源协议
IIS

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