is-region

v1.0.3
A JavaScript module for checking if a country is part of a specific region.
module javascript region is-region country location node regions

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
npm i is-region

Metadata

  • MIT
  • Whatever
  • Ryan Burgess @burgessdryan
  • released 3/18/2015

Downloads

Maintainers