# itheima-tools-myee

> ``` npm install itheima-tools-my ```

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

## Install

```sh
npm install itheima-tools-myee
pnpm add itheima-tools-myee
yarn add itheima-tools-myee
bun add itheima-tools-myee
```

## 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-03-14 |
| First published | 2023-03-14 |
| 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 | willenliu |
| Keywords | itheima-tools-my, itheima-tools, tools-my, itheima |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2023-03-14

## README

## 安装
```
npm install itheima-tools-my
```

## 导入
```js
const itheima = require('itheima-tools-my')
```

## 格式化时间
```js
// <!-- 调用dataFormat 对时间进行格式化 -->
// <!-- // 格式化时间的功能 -->
const daStr = ima.dataFormat(new Date());
// 结果 2021-03-14 16:25:24
```

## 转义还原HTML 中的 特殊字符
```js
const htmlStr = '<h1 title="abc">这是h1标签<span>123&nbsp;</span></h1>';
const str = ima.htmlEscape(htmlStr)
console.log(ima.htmlEscape(htmlStr));
// 结果：&lt;h1 title=&quot;abc&quot;&gt;这是h1标签&lt;span&gt;123&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;
const str2 = ima.htmlUnEscape(str);
console.log(str2);
// 结果：
// <h1 title="abc">这是h1标签<span>123&nbsp;</span></h1>
```

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