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

0.0.2 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.2
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.2
    2
  • 0.0.1
    0

Package Sidebar

Install

npm i icity

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • zswang