【文件属性】:
文件名称:ist的matlab代码-country-state-city:国家,州和城市的基本图书馆
文件大小:2.74MB
文件格式:ZIP
更新时间:2021-05-26 07:26:09
系统开源
ist的matlab代码乡村国家城市
国家,州和城市的基本图书馆
数据源:
对于任何与数据相关的问题,您可以提出一个Issue。
安装
npm
i
country-state-city
用法
最新版本:
v2.0.0
(主要版本-不向后兼容)
ES6模块的用法
import
csc
from
'country-state-city'
//
Import
Interfaces`
import
{
ICountry
,
IState
,
ICity
}
from
'country-state-city'
AMD模块的使用
let
csc
=
require
(
'country-state-city'
)
.
default
对于v0.1.8
and
below版本
ES6模块的用法
import
csc
from
'country-state-city'
AMD模块的使用
let
csc
=
require
(
'country-state-city'
)
文件
getCountryByCode(countryCode)
它接受有效的CountryCode例如:
'AS'并返回国家/地区
【文件预览】:
country-state-city-master
----.gitignore(26B)
----.eslintrc(598B)
----package.json(1KB)
----package-lock.json(243KB)
----src()
--------interface.ts(657B)
----__test__()
--------interface-export.test.ts(2KB)
--------index.test.ts(9KB)
--------amdModule.test.js(122B)
----jest.config.js(275B)
----LICENSE(34KB)
----tsconfig.json(323B)
----.github()
--------workflows()
----.prettierrc.js(271B)
----README.md(5KB)
----.eslintignore(17B)
----index.ts(2KB)
----lib()
--------state.json(822KB)
--------city.json(23.77MB)
--------country.json(167KB)
----.npmignore(54B)