# airheadovo

> 格式化输入,防止xss注入

Latest version **1.0.0** (published 2022-03-18) · ISC license · 0 weekly downloads

## Install

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

## 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-03-18 |
| First published | 2022-03-18 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | airheadovo |
| Maintainers | airheadovo |
| Keywords | xss, air, airheadovo |

## Links

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

## Recent versions

- 1.0.0 (latest) — 2022-03-18

## README

## 安装
```
npm i airheadovo
```

## 导入
```
const aT = require('airheadovo')
``` 

## 使用-格式化时间
```
const str = aT.dateFormat(new Date())
console.log(str); // 2022-03-05 11:32:50
```

## 使用-转义html
```
const t = '<h1 style:"color:red;">111</h1>'
console.log(t);
console.log(aT.htmlEscape(t));
console.log(); // &lt;h1 style:&quot;color:red;&quot;&gt;111&lt;/h1&gt;
```

## 开源协议
ISC

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