# ljr.a.a

> 这是ljr自定义的第一个包

Latest version **1.0.0** (published 2021-09-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install ljr.a.a
pnpm add ljr.a.a
yarn add ljr.a.a
bun add ljr.a.a
```

## 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-09-19 |
| First published | 2021-09-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | mqlfx |
| Keywords | ljr, MMM, nihao |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2021-09-19

## README

## 安装
```
npm install ljr.a.a
```

## 导入
```js
const ljr = require('./ljr.a.a')
```



## 格式化时间
```js
// 调用data对时间进行格式化
const a = ljr.data(new Date())
console.log(a);
```


## 转义HTML
```js
const b = '<h1>这是一个h1标签<span>123&nbsp;</span></h1>'
// 调用htmlEscape这个函数，转义html字符
const str = ljr.htmlEscape(b)
console.log(str);
```


## 还原html字符
```js
// 调用这个函数，答应还原后的字符
const ustr = ljr.htmlUnEscape(str)
console.log(ustr);
```


## 开源协议
ISC

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