# fly-utils-123

> 这是一个格式化时间和转义html标签的包

Latest version **0.0.1** (published 2021-02-21) · MIT license · 0 weekly downloads

## Install

```sh
npm install fly-utils-123
pnpm add fly-utils-123
yarn add fly-utils-123
bun add fly-utils-123
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2021-02-21 |
| First published | 2021-02-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | fly |
| Maintainers | yu2021 |
| Keywords | format, escape, fly-utils |

## Links

- npm: https://www.npmjs.com/package/fly-utils-123
- npm.io page: https://npm.io/package/fly-utils-123

## Recent versions

- 0.0.1 (latest) — 2021-02-21

## README

## Install 安装
```shell
npm i fly-utils
```

## Require 导入
```js
const utils = require('fly-utils')
```

## Usage 使用方法

- 格式化日期
  ```js
  // 调用格式化日期函数
  const dt = utils.formatDate('2021-1-1')
  console.log(dt)
  ```

- 转义 html 标签的方法
  ```js
  // 调用转义 html 标签的方法
  const res = utils.escapeHTML('<span style="color: red">hello</span>')
  console.log(res)
  ```

- 还原 html 标签的方法
  ```js
  // 调用还原 html 标签的方法
  const res2 = utils.unEscapeHTML('&lt;span style=&quot;color: red&quot;&gt;hello&lt;/span&gt;')
  console.log(res2)
  ```

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