bc-countries

WebJar for bc-countries

Лицензия

Лицензия

MIT
Категории

Категории

Github Инструменты разработки Контроль версий
Группа

Группа

org.webjars.bower
Идентификатор

Идентификатор

github-com-blockchain-bc-countries
Последняя версия

Последняя версия

2.0.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

bc-countries
WebJar for bc-countries
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/blockchain/bc-countries

Скачать github-com-blockchain-bc-countries

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.bower/github-com-blockchain-bc-countries/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>github-com-blockchain-bc-countries</artifactId>
    <version>2.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-blockchain-bc-countries/
implementation 'org.webjars.bower:github-com-blockchain-bc-countries:2.0.0'
// https://jarcasting.com/artifacts/org.webjars.bower/github-com-blockchain-bc-countries/
implementation ("org.webjars.bower:github-com-blockchain-bc-countries:2.0.0")
'org.webjars.bower:github-com-blockchain-bc-countries:jar:2.0.0'
<dependency org="org.webjars.bower" name="github-com-blockchain-bc-countries" rev="2.0.0">
  <artifact name="github-com-blockchain-bc-countries" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='github-com-blockchain-bc-countries', version='2.0.0')
)
libraryDependencies += "org.webjars.bower" % "github-com-blockchain-bc-countries" % "2.0.0"
[org.webjars.bower/github-com-blockchain-bc-countries "2.0.0"]

Зависимости

compile (2)

Идентификатор библиотеки Тип Версия
org.webjars.bower : digits-trie jar [1.0.0,1.1)
org.webjars.bower : google-libphonenumber jar [1.0.7,1.1)

Модули Проекта

Данный проект не имеет модулей.

bc-countries Build Status

A convenient Javascript countries utilities (e.g: dial codes, country codes, names)

Installation

Bower

bower install --save bc-countries
var bcCountries = window.bcCountries;

NPM

npm install --save bc-countries
var bcCountries = require('bc-countries');

Other (not recommended)

Just copy the dist

Usage

Main functions

A country is an object with keys (dialCode, iso2Code, name). Functions that take digits, throw unless digits is a string of digits.

  1. getCountryByIso2Code(iso2Code): returns the country with iso2 code code if exists, null otherwise.
  2. getIso2CodeByDigits(digits): returns the iso2 code, given that digits starts with that country dial code, an empty string otherwise.
  3. getDialCodeByDigits(digits): returns the dial code, given that digits starts with that country dial code, an empty string otherwise.
  4. getAllCountries(): returns all countries.

You can find the full documentation here.

org.webjars.bower

Blockchain.com / Blockchain.info

Версии библиотеки

Версия
2.0.0