# level-first-package

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

Latest version **1.0.0** (published 2022-12-25) · ISC license · 0 weekly downloads

## Install

```sh
npm install level-first-package
pnpm add level-first-package
yarn add level-first-package
bun add level-first-package
```

## 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 | 2022-12-25 |
| First published | 2022-12-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | level |
| Maintainers | level_fan |
| Keywords | level, dateFormat, ker |

## Links

- npm: https://www.npmjs.com/package/level-first-package
- npm.io page: https://npm.io/package/level-first-package

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2022-12-25

## README

## 安装
'''
npm install level-first-package
'''

## 导入
'''js
const tools = require('level-first-package');
'''

## 格式化时间
'''js
// 创建一个时间对象
const dt = new Date();
// 调用dateFormat方法并传入一个时间对象
const newDT = tools.dateFormat(dt);
// 格式化结果 2022-12-00 12:00:00
console.log(newDT);
'''

## 转义html中特殊字符
'''js
const html = '<h1 title="大标题">我是大标题<span>我是span标签&nbsp;</span></h1>';
// 调用htmlEscape方法并传入html字符串
const htmlEscapeStr = tools.htmlEscape(html);
// 转义结果 &lt;h1 title=&quot;大标题&quot;&gt;我是大标题&lt;span&gt;我是span标签&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;
console.log(htmlEscapeStr);
'''

## 反转义html中特殊字符
'''js
const html = '&lt;h1 title=&quot;大标题&quot;&gt;我是大标题&lt;span&gt;我是span标签&amp;nbsp;&lt;/span&gt;&lt;/h1&gt;';
// 调用htmlUnEscape方法并传入html字符串
const htmlUnEscapeStr = tools.htmlUnEscape(html);
// 转义结果 <h1 title="大标题">我是大标题<span>我是span标签&nbsp;</span></h1>
console.log(htmlUnEscapeStr);
'''

## 开源协议
ISC

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