New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

basic-helper

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

basic-helper

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

latest
Source
npmnpm
Version
3.0.8
Version published
Maintainers
1
Created
Source

Basic Helper

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

Build Status install size

安装

yarn add basic-helper

使用

通用

import { Call } from 'basic-helper';

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

按需引用

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

// 默认引入
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';

更多扩展

FAQs

Package last updated on 16 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts