# zzwangluxin15

> 提供了时间格式化，HTML转义功能

Latest version **1.0.0** (published 2021-03-07) · ISC license · 0 weekly downloads

## Install

```sh
npm install zzwangluxin15
pnpm add zzwangluxin15
yarn add zzwangluxin15
bun add zzwangluxin15
```

## 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 | 2021-03-07 |
| First published | 2021-03-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | wangluxin-bit |
| Keywords | wangluxin, datafomat, escape |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2021-03-07

## README

<!-- 安装方式，导入方式，格式化时间，转义HTML中的特殊字符 还原HTML特殊字符，开源协议 -->
## 安装
```js
npm install zzwangluxin18
```
## 导入
```js
const wangluxin=require('zzwangluxin18')
```
## 格式化时间
```js
// 调用dataFormat对时间进行格式化
const dtStr=wangluxin.dataFormat(new Data())
// 结果输出
console.log(dtStr)
// 2021-03-07 18-53-07
```

## HTML转义字符
```js
// 调用HTMLEscape对HTML进行转义
const str=wangluxiin.htmlEscape('&lt;h1&gt;开开心心的&lt;/h1&gt;')
console.log(str)// 结果输出:<h1>开开"心心的&</h1>
const str1=wangluxiin.htmlEscape('<h1>开开"心心的&</h1>')
console.log(str1)//结果输出:&lt;h1&gt;开开心心的&lt;/h1&gt;
```

## 开源协议
ISC

## nrm包的安装
```js
npm install nrm -g //安装包
nrm ls //查看镜像列表
nrm use npm //转换为npm的镜像服务器
```

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