【文件属性】:
文件名称:phono:电话号码验证器
文件大小:16KB
文件格式:ZIP
更新时间:2021-07-05 01:14:57
JavaScript
唱机
SPM 和 NPM 模块,电话号码验证器。
安装
$ spm install phono --save
$ npm install phono --save
使用
var phono = require ( 'phono' ) ;
// Valid
phono ( '13800138000' ) . isValid ( ) ;
// China Mobile
phono ( '17050000000' ) . isCM ( ) ;
phono ( '17050000000' ) . isChinaMobile ( ) ;
// China Telecom
phono ( '17000000000' ) . isCT ( ) ;
phono ( '17000000000' ) . isChinaTelecom ( ) ;
// China Unicom
phono ( '1709
【文件预览】:
phono-master
----.travis.yml(39B)
----config.rb(64B)
----index.js(235B)
----HISTORY.md(66B)
----package.json(910B)
----tests()
--------index-spec.js(2KB)
----.spmignore(73B)
----LICENSE(1KB)
----Gruntfile.js(747B)
----src()
--------rules.js(729B)
--------validator.js(787B)
----examples()
--------config.js(179B)
--------index.html(370B)
--------seajs()
----.gitignore(177B)
----Makefile(278B)
----README.md(1KB)
----.jshintrc(571B)
----.editorconfig(197B)