# leutil

> javascript unconventional lib

Latest version **1.0.2** (published 2018-08-23) · MIT license · 0 weekly downloads

## Install

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

## 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.2 |
| Published | 2018-08-23 |
| First published | 2017-10-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 28.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | skylor |
| Maintainers | skylor |
| Keywords | javascript, util, lib |

## Links

- npm: https://www.npmjs.com/package/leutil
- Repository: https://github.com/skyFi/util
- Homepage: https://github.com/skyFi/util#readme
- Issues: https://github.com/skyFi/util/issues
- npm.io page: https://npm.io/package/leutil

## Alternatives

- [@cantoo/pdf-lib](https://npm.io/package/@cantoo/pdf-lib.md) — 297.9K weekly downloads
- [datatables.net-buttons](https://npm.io/package/datatables.net-buttons.md) — 200.1K weekly downloads
- [@ckeditor/ckeditor5-export-pdf](https://npm.io/package/@ckeditor/ckeditor5-export-pdf.md) — 167.0K weekly downloads
- [scanbot-web-sdk](https://npm.io/package/scanbot-web-sdk.md) — 15.0K weekly downloads
- [@syncfusion/ej2-angular-pdfviewer](https://npm.io/package/@syncfusion/ej2-angular-pdfviewer.md) — 8.8K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2018-08-23
- 1.0.1 — 2018-08-23
- 1.0.0 — 2017-10-19

## README

# util
JavaScript 非常规工具库

## Install

```shell
npm install leutil

// or
yarn add leutil
```

## Api

### isEmail(email: String): Boolean 校验邮箱格式

```javascript
import { isEmail } from 'leutil';

isEmail('abc@def.com');
// => true

isEmail('abcdef.com');
// => false
```

### isPhoneNum(phone: String): Boolean 国内手机号码格式简单校验

```javascript
import { isPhoneNum } from 'leutil';

isPhoneNum('18767565433');
// => true
isPhoneNum('1876756533');
// => false
```

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