# country-regex

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

Latest version **1.1.0** (published 2017-02-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install country-regex
pnpm add country-regex
yarn add country-regex
bun add country-regex
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2017-02-17 |
| First published | 2016-04-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Étienne Tétreault-Pinard |
| Maintainers | etpinard |
| Keywords | country, regex, iso3 |

## Links

- npm: https://www.npmjs.com/package/country-regex
- Repository: https://github.com/etpinard/country-regex
- Homepage: https://github.com/etpinard/country-regex#readme
- Issues: https://github.com/etpinard/country-regex/issues
- npm.io page: https://npm.io/package/country-regex

## Recent versions

- 1.1.0 (latest) — 2017-02-17
- 1.0.3 — 2016-09-02
- 1.0.0 — 2016-04-21

## README

# country-regex

[![npm version][1]][1a]
[![gzip size][8]][1a]

[![Build Status][2]][2a]
[![Dependency Status][3]][3a]
[![devDependency Status][4]][4a]

Hash map of country [ISO-3][5] code to regular expression identifier. Regular
expression data is taken from [Vincent Arel-Bundock][6]'s [`countrycode`][7] R
package (GPL-3 License). Big ups! :beers:


## Install

```bash
npm install country-regex
```

## Usage

```js
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](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)

[1]: https://badge.fury.io/js/country-regex.svg
[1a]: https://badge.fury.io/js/country-regex
[2]: https://travis-ci.org/etpinard/country-regex.svg?branch=master
[2a]: https://travis-ci.org/etpinard/country-regex
[3]: https://david-dm.org/etpinard/country-regex.svg?style=flat-square
[3a]: https://david-dm.org/etpinard/country-regex
[4]: https://david-dm.org/etpinard/country-regex/dev-status.svg?style=flat-square
[4a]: https://david-dm.org/etpinard/country-regex#info=devDependencies
[5]: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3
[6]: https://github.com/vincentarelbundock
[7]: https://github.com/vincentarelbundock/countrycode
[8]: https://badges.herokuapp.com/size/npm/country-regex/index.js?gzip=true

---
_Source: https://npm.io/package/country-regex · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
