1.2.3 • Published 2 years ago

@flingyp/test v1.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

介绍

一款集成各种常用工具方法库,通过 @flingyp/tools 可以快速找到常用的工具方法,极大增加开发时的效率

安装和快速上手

pnpm add @flingyp/tools --save

browser

<script src="@flingyp/tools/xxx.js"></script>

<script>
    // YTools 已经被注册到 Window 中,可直接使用
    YTools._string.SensitiveStringHandle('12345678901', 4, 5)
</script>

esmodule

import { _string } from '@flingyp/tools'
_string.SensitiveStringHandle('12345678901', 4, 5)

commonjs

const { _string } = require('@flingyp/tools')
_string.SensitiveStringHandle('12345678901', 4, 5)
// or
const YTools = require('@flingyp/tools')
YTools._string.SensitiveStringHandle('12345678901', 4, 5)

代办事项

  • 字符串
    • 字符串敏感信息的处理
  • 数字
    • 生成随机数
  • 时间
    • 根据日期/时间-输出对应格式的日期
  • 格式校验
    • 手机号码
    • 身份证号码
    • 邮箱校验
    • QQ 号校验
    • 校验字符串中是否包含中文
    • 校验字符串中是否包含数字
  • 函数
    • 节流函数 Throttle
    • 防抖函数 Debounce
  • 数组
    • 数组去重 DelRepeat
1.2.3

2 years ago

1.4.8

2 years ago

1.4.7

2 years ago

1.4.6

2 years ago

1.4.5

2 years ago

1.3.5

2 years ago

1.3.4

2 years ago

1.3.3

2 years ago

1.3.2

2 years ago

1.3.1

2 years ago

1.3.0

2 years ago

1.0.0

2 years ago