0.1.2 • Published 6 years ago

zawu v0.1.2

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

zawu

npm Travis branch Codecov branch

zawu => 杂物

Install

Run npm i zawu -S

Usage

const zawu = require('zawu');

const phoneNumber = '15212345678';

if (zawu.isValidPhoneNumber(phoneNumber)) {
  //...
} else {
  //...
}

API

  • isValidPhoneNumber to validate if the phone number is a good formatted in China.
    • #isValidPhoneNumber('15212345678')
  • isCJKChar to validate if a char is a cjk char
    • #isCJKChar('杂')
  • isCJKString to validate if a string is a cjk string
    • #isCJKString('杂物')
  • isCJKStringWithLength to validate if a string is a cjk string with n length
    • #isCJKStringWithLength('杂物' ,2)
0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.1

6 years ago