Skip to content

自定义获取手机号国际区号以及准确性的对应名

Notifications You must be signed in to change notification settings

Tracy-Wei/area-code-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install

npm install area-code-list
yarn add area-code-list

Usage

import countries from "area-code-list";

Get name of the country

name = countries.getCountryByName("阿富汗");

Get code of the country

code = countries.getCountryByCode("+93");

Get list of all country names

names = countries.getCountries();

Get name of the ShortName

name = countries.getCountriesByShortName("AF");

Get code of the En

code = countries.getEnToCountry("Afghanistan");

Get list of all GroupEn

names = countries.getGroupEnToCountry("A");

Get list of all GroupCn

names = countries.getGroupCnToCountry("A");

Inspired by 灵感来自

  • @datasets/country-list

About

自定义获取手机号国际区号以及准确性的对应名

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published