🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

all-the-regions

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

all-the-regions

every United Nations-designated region and subregion with all their countries in a nice neat hash

1.0.2
latest
Source
npm
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

all-the-regions

Every United Nations-designated region and subregion with all their countries in a nice neat hash.

Inspired by

https://www.npmjs.com/package/countryjs

and sourced from

http://unstats.un.org/unsd/methods/m49/m49regin.htm

Intended as a much lighter-weight way of accessing regions and subregions directly, without having to output a huge blob of full country data from countryjs and groupby.

Installation

npm install all-the-regions --save

Usage ES5

var regions = require('all-the-regions').regions console.log(regions);

Usage ES6

const subregions = import { subregions } from 'all-the-regions'; console.log(subregions.Micronesia);

Tests

no tests as of yet

Contributing

hit me with a PR if you see anything that needs fixin

Release History

  • 1.0.0 Initial release

Keywords

world

FAQs

Package last updated on 04 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts