vast-utils

A JavaScript utils tool library using Rollup

Usage no npm install needed!

<script type="module">
  import vastUtils from 'https://cdn.skypack.dev/vast-utils';
</script>

README

Quick to use

  1. Clone
# 克隆项目(vast-utils)
git clone https://github.com/yayxs/vast-utils
  1. Use in Pro
yarn add vast-utils

// 导入
import { xxx } from 'vast-utils'

  1. test
yarn test // use jest

Constants

isHttpsMailtoTelBoolean

是否是 http/https/mailto/tel 开头

isStartBoolean

是否是 '12:34' 格式

isGuoNeiCallBoolean

是否是 国内电话

isHttpsMailtoTel ⇒ Boolean

是否是 http/https/mailto/tel 开头

Kind: global constant

Type Description
String path 地址

isStart ⇒ Boolean

是否是 '12:34' 格式

Kind: global constant

Type Description
String str

isGuoNeiCall ⇒ Boolean

是否是 国内电话

Kind: global constant

Type Description
String 电话号码 0370-3731666 或者 021-87888822

Git 提交规范

  • feat 增加新功能
  • fix 修复问题/BUG
  • style 代码风格相关无影响运行结果的
  • perf 优化/性能提升
  • refactor 重构
  • revert 撤销修改
  • test 测试相关
  • docs 文档/注释
  • chore 依赖更新/脚手架配置修改等
  • workflow 工作流改进
  • ci 持续集成
  • types 类型定义文件更改
  • wip 开发中