ts-road
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

安装

npm install ts-road

引入

import { trim } from 'ts-road' // or
import { trim } from 'ts-road/dist'

API

  • 📢 x 表示没有参数
  • ☀️ string|number等表示有参数或者数据类型
  • 💸 1或者true等表示该参数的默认值
  • 🍫 ?意思是可以为空
api 说明 参数1 参数2 参数3 参数4 返回类型
urlToObj url转对象 string x x x Object
phone 电话验证 string x x x Boolean
identityCard 身份证验证 string x x x Boolean
trim 清除空格 string string x x string
randomColor 随机16进制颜色 x x x x string

❤️ Common front-end methods will continue to be updated

Package Sidebar

Install

npm i ts-road

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

26.2 kB

Total Files

20

Last publish

Collaborators

  • zhuhong317626