country-regex

WebJar for country-regex

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

country-regex
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

country-regex
WebJar for country-regex
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/etpinard/country-regex

Download country-regex

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/country-regex/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>country-regex</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/country-regex/
implementation 'org.webjars.npm:country-regex:1.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/country-regex/
implementation ("org.webjars.npm:country-regex:1.1.0")
'org.webjars.npm:country-regex:jar:1.1.0'
<dependency org="org.webjars.npm" name="country-regex" rev="1.1.0">
  <artifact name="country-regex" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='country-regex', version='1.1.0')
)
libraryDependencies += "org.webjars.npm" % "country-regex" % "1.1.0"
[org.webjars.npm/country-regex "1.1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

country-regex

npm version gzip size

Build Status Dependency Status devDependency Status

Hash map of country ISO-3 code to regular expression identifier. Regular expression data is taken from Vincent Arel-Bundock's countrycode R package (GPL-3 License). Big ups! 🍻

Install

npm install country-regex

Usage

var countryRegex = require('country-regex')

// and then for example:
countryRegex['USA']

// => 'united.?states\\b(?!.*islands)|\\bu\\.?s\\.?a\\.?\\b|^\\s*u\\.?s\\.?\\b(?!.*islands)'

Credits

2017 Étienne Tétreault-Pinard. MIT License

Standard - JavaScript Style Guide

Versions

Version
1.1.0