country-regex
Hash map of country ISO-3 codes to regular expression identifiers
Last updated 4 years ago by etpinard .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install country-regex 
SYNC missed versions from official npm registry.

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! :beers:

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 StyleGuide

Current Tags

  • 1.1.0                                ...           latest (4 years ago)

3 Versions

  • 1.1.0                                ...           4 years ago
  • 1.0.3                                ...           4 years ago
  • 1.0.0                                ...           5 years ago

Copyright 2014 - 2016 © taobao.org |