This node package contains multiple utilies to manage GEO data such as countries, languages and US states.
$ npm install geo-utils
Include the library:
var geo = require("geo-utils");
Countries:
var countries = geo.countries;
// List of all countries
countries.LIST;
// Get a country
countries.get("FR");
Languages:
var languages = geo.languages;
// List of all languages
languages.LIST;
// Get a language
languages.get("fr");
US States:
var usstates = geo.usstates;
// List of all US states
usstates.LIST;
// Get a US state
usstates.get("CA");