icity 获取手机号码所在城市的工具

写一个手机号码查询所在城市小工具,数据文件共 819 KB,支持国内主流的号段,无他就是小

JavaScript 其它杂项

访问GitHub主页

共44Star

详细介绍

icity

NPM version Build Status Coverage Status

Get the tools for the city where your phone number is located

Usage 使用方法

$ npm install icity --save

Examples 示例

console.log(JSON.stringify(icity.parse('13810570000')))
// > {"province":"北京","city":"北京","areaCode":"010","provider":"中国移动"}

console.log(JSON.stringify(icity.parse('13820570000')))
// > {"province":"天津","city":"天津","areaCode":"022","provider":"中国移动"}

License

MIT © zswang

推荐源码