# basic-helper

> basic-helper 是一个语义化辅助函数库，提供一些基础通用的数据处理函数。

Latest version **3.0.8** (published 2019-10-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install basic-helper
pnpm add basic-helper
yarn add basic-helper
bun add basic-helper
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.0.8 |
| Published | 2019-10-16 |
| First published | 2017-10-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 38.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | sanget |
| Maintainers | sangett |

## Links

- npm: https://www.npmjs.com/package/basic-helper
- Repository: https://github.com/SANGET/basic-helper-js
- Homepage: https://github.com/SANGET/basic-helper-js#readme
- Issues: https://github.com/SANGET/basic-helper-js/issues
- npm.io page: https://npm.io/package/basic-helper

## Recent versions

- 3.0.8 (latest) — 2019-10-16
- 3.0.7 — 2019-09-20
- 3.0.6 — 2019-07-29
- 3.0.5 — 2019-07-28
- 3.0.4 — 2019-06-21
- 3.0.3 — 2019-06-13
- 3.0.2 — 2019-06-12
- 3.0.1 — 2019-06-12
- 3.0.0 — 2019-06-12
- 2.0.0 — 2019-05-10
- 1.4.11 — 2019-03-15
- 1.4.10 — 2019-03-05
- 1.4.8 — 2019-01-14
- 1.4.7 — 2019-01-09
- 1.4.6 — 2019-01-09
- … 8 more at https://npm.io/package/basic-helper/versions

## README

# Basic Helper

basic-helper 是一个语义化辅助函数库，提供一些基础通用的数据处理函数。

[![Build Status](https://travis-ci.com/SANGET/basic-helper-js.svg?branch=master)](https://travis-ci.com/SANGET/basic-helper-js)
[![install size](https://packagephobia.now.sh/badge?p=basic-helper)](https://packagephobia.now.sh/result?p=basic-helper)

## 安装

```shell
yarn add basic-helper
```

## 使用

### 通用

```js
import { Call } from 'basic-helper';

Call((args1, args2) => {}, args1, args2);
```

### 按需引用

`basic-helper` 的辅助函数按照一定的规则进行了分类，可以按需引入

```js
// 默认引入
import { RemoveArrayItem } from 'basic-helper/array';
import { Call, CallFunc } from 'basic-helper/call';
import { DateFormat, ToUTC, TimeFormat, DateRange } from 'basic-helper/datetime-helper';
import DebounceClass from 'basic-helper/debounce';
import EventEmitterClass from 'basic-helper/event-emitter';
import { 
  StripScript, IsUrl, IsFunc, IsObj, IsEmail,
  IsPhoneNumber, IsPhone, BoolFilter, InArr, HasValue
} from 'basic-helper/filter';
import { UUID, WrapNumbPrefix, GenerateNumberRange, Random } from 'basic-helper/generation';
import { SetBasicUnit, GetBasicUnit, ToBasicUnitMoney, MoneyFormat, UnitFormat } from 'basic-helper/money';
import { GetFloatLen, SetFloatLen, ToFixed, ToggleBasicFloatLen } from 'basic-helper/number';

// 需要指定引入
import Storage from 'basic-helper/storage';
import numTransformToCN from 'basic-helper/num-to-cn';
```

## 更多扩展

- [订阅发布](./docs/event.md)
- [防抖函数](./docs/debounce.md)
- [本地数据存储](./docs/storage.md)
- [全局注册](./docs/registe.md)

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