# itheima-zys-kiku

> npm很强大

Latest version **1.1.0** (published 2022-04-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install itheima-zys-kiku
pnpm add itheima-zys-kiku
yarn add itheima-zys-kiku
bun add itheima-zys-kiku
```

## 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.1.0 |
| Published | 2022-04-13 |
| First published | 2022-04-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | zhangyasi |
| Keywords | kiku, itheima |

## Links

- npm: https://www.npmjs.com/package/itheima-zys-kiku
- npm.io page: https://npm.io/package/itheima-zys-kiku

## Recent versions

- 1.1.0 (latest) — 2022-04-13

## README

## 安装
```
npm install itheima-zys-kiku
```

## 导入
```js
let it = require('./itheima-test')
```

## 格式化时间
```js
// 调用 format 对时间进行格式化
const dtStr = it.it.format(new Date())(new Date())
// 结果  2022-04-13 16:47:19
console.log(dtStr)
```

## 转义 HTML 中的特殊字符
```js
// 带转换的 HTML 字符串
let htmlstr = '<h1>"鞠婧祎"</h1>'
// 调用 htmlEscape 方法进行转换
let str = it.htmlEscape(htmlstr)
// 转换的结果 &lt;h1&gt;&quot;鞠婧祎&quot;&lt;/h1&gt;
console.log(str)
```

## 还原 HTML 中的特殊字符
```js
// 待还原的 HTML 字符串
let str2 = it.Escape(str)
// 输出的结果 <h1>"鞠婧祎"</h1>
console.log(str2)
```

## 开源协议
ISC

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