🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

mid-uti1s

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mid-uti1s

utils

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
23
35.29%
Maintainers
1
Weekly downloads
 
Created
Source

mid-uti1s

自用工具库总结

(修复报错)

Installing

For the latest stable version:

npm install -D mid-uti1s

For our nightly builds:

npm install -D mid-uti1s@next

Usage

ES6:

import utils from 'mid-uti1s'

utils.getType(11)   // 获取类型`number`

commonjs:

const utils = require('mid-uti1s')

utils.getType(11)   // 获取类型`number`

Update content

方法内容更新时间
getType判断7种基本类型和对象、数组类型,返回类型名字符串2023-10-26
getOsType判断终端系统 0: 其他 1: IOS 2: Android 3: Windows 4: Mac OS2023-10-26
isMd5md5格式(32位)2023-10-30
isVersion版本号(version)格式必须为X.Y.Z2023-10-30
isComplexPassword密码强度校验, 最少6位, 包括至少1个大写字母, 1个小写字母,1个数字,1个特殊字符2023-10-30
getHumpCode横线命名转小驼峰格式: mid-utils => midUtils2023-11-03
getLineCode小驼峰命名转横向格式:midUtils => mid-utils2023-11-03
getCapitalize首字母大写2023-11-03
checkIdentityId校验身份证号码是否合法2023-11-07
numberChinese数字转中文2023-11-07
formatCss格式化CSS样式代码2023-11-13
randomNumber生成指定范围内的随机数字2023-11-16
formatThousands数字千分位分割2023-11-16
telFormat手机号中间四位变成*2023-11-23
checkIdentityIdPro校验身份证号码是否合法-Pro2023-11-23
haveCNChars是否包含中文2023-11-28
isEmail是否为正确邮箱地址2023-11-28

Keywords

utils

FAQs

Package last updated on 28 Nov 2023

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