JSPM

country-regex

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 251732
  • Score
    100M100P100Q168711F
  • License MIT

Hash map of country ISO-3 codes to regular expression identifiers

Package Exports

  • country-regex

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (country-regex) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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