List of M49 regions
This library constains list of M49 regions based on United Nations standard - https://unstats.un.org/unsd/methodology/m49/
You can use package as npm module. Just install it:
npm install m49-regions --save
and use it in you project:
var m49Regions = require('m49-regions');
console.log(m49Regions);
It can be also used with RequireJS, CommonJS, Browserify or Webpack.
Format
Each region have two mandatory properties (name and code) and one optional (sub - for subregions). Json is in hearchial structure:
{
"code": "001",
"name": "World",
"sub": [ {
"code": "009",
"name": "Europe",
"sub": [ ... list of sub-regions ... ]
}
...
]
}