# chow-utils

> 提供了格式化时间，HTMLEscape的功能

Latest version **1.0.0** (published 2023-08-13) · ISC license · 0 weekly downloads

## Install

```sh
npm install chow-utils
pnpm add chow-utils
yarn add chow-utils
bun add chow-utils
```

## 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-08-13 |
| First published | 2023-08-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 | chowrogger |
| Keywords | chow, dateFormat, escape |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2023-08-13

## README

## 安装
```bash
    npm install chow-utils
```

## 导入
```js
    const chow = require('chow-utils')
```


## 格式化时间
```js 
    // 调用dateFormat对事件进行格式化
    let dt = chow.dateFormat(new Date())
    console.log(dt);
```


## 转义HTML中的特殊字符
```js
    // 待转换的html字符串
    let htmlStr = '<h1>aaa</h1>';
    // 调用htmlEscpape方法进行转换
    console.log(chow.htmlEscpape(htmlStr));
    // 输出结果：&lt;h1&gt;aaa&lt;/h1&gt;
```

## 还原HTML中的特殊字符
```js
    // 待还原的html字符串
    let str = '&lt;h1&gt;aaa&lt;/h1&gt;';
    // 调用htmlUnEscape方法进行转换，并输出结果
    console.log(chow.htmlUnEscape(str))
    // <h1>aaa</h1>
```

## 开源协议
ISC

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