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
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