# itheima-hand_of_god

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

Latest version **1.0.1** (published 2022-05-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install itheima-hand_of_god
pnpm add itheima-hand_of_god
yarn add itheima-hand_of_god
bun add itheima-hand_of_god
```

## 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 | 2022-05-25 |
| First published | 2022-05-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | yuanyuangod |
| Keywords | itheima, caixukun, ji-ni-tai-mei |

## Links

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

## Recent versions

- 1.0.1 (latest) — 2022-05-25
- 1.0.0 — 2022-05-25

## README

## 安装
```js
npm install itheima-hand_of_god
```

## 导入
```js
cosnt itheima = require('itheima-hand_of_god')
```

## 格式化时间
```js
// 调用 dataFormat 对时间进行格式化
const dtStr = itheima.dateFormat(new Date()) 
// 结果 例：2000-01-01 08:30:55
console.log(dtStr)
```

## 转义HTML特殊字符
```js
// 调用 htmlEscape 方法进行转换
const str = itheima.htmlEscape('<h1 style="color:#red">鸡你太美！</h1>');
// 转换的结果 &lt;h1 style=&quot;color:#red&quot;&gt;鸡你太美！&lt;/h1&gt;
console.log(str);
```

## 还原HTML特殊字符
```js
// 调用 htmlUnEscape 方法进行还原
const unstr = itheima.htmlUnEscape('<h1 style="color: #red">鸡你太美！</h1>');
// 结果 <h1 style="color: #red">鸡你太美！</h1>
console.log(unstr);
```

## 开源协议
ISC

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