Skip to content
/ icity Public
forked from zswang/icity

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

License

Notifications You must be signed in to change notification settings

idevsoft/icity

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 58.8%
  • JavaScript 41.2%