is-region

A JavaScript module for checking if a country is part of a specific region.

Usage no npm install needed!

<script type="module">
  import isRegion from 'https://cdn.skypack.dev/is-region';
</script>

README

Is Region Build Status

A JavaScript module for checking if a country is part of a specific region.

Install

npm install is-region --save-dev

Use

var region = require('is-region');
var country = 'UK';

region(country);

Release History

  • 1.0.3: Add test script.
  • 1.0.2: Add support for South America.
  • 1.0.1: Check for regions NA, EU, EMEA and APAC.
  • 1.0.0: Initial release.

Contributing

  1. Fork it
  2. Run npm install
  3. Run Grunt watch grunt watch
  4. Create your feature branch (git checkout -b my-new-feature)
  5. Commit your changes (git commit -am "Add some feature")
  6. Push to the branch (git push origin my-new-feature)
  7. Create new Pull Request## License MIT © Ryan Burgess