node package manager
Loosely couple your services. Use Orgs to version and reuse your code. Create a free org »

iso3166-2

iso3166-2 (UNDER DEVELOPMENT/BETA)

Version License Downloads Deps DevDeps Build Status


this isn't ready for primetime just yet :)... sorry.

The smallest, fastest, node module for resolving ISO 3166-2 geographic subdivisions. Browserify/Webpack friendly.

it's totally small!

$ browserify iso3166-2.js | wc -c | numfmt --to=iec --suffix=B --format="%3f"
 
$ browserify iso3166-2.js | uglifyjs | wc -c | numfmt --to=iec --suffix=B --format="%3f"
 
$ browserify iso3166-2.js | uglifyjs - --screw-ie8 --compress --mangle | yuicompressor --type js -o iso3166-2.js && cat iso3166-2.js | wc -c | numfmt --to=iec --suffix=B --format="%3f"
 

with over 240 countries and completely update to date with ISO standards!

> var countries = require('./countries.json')
> Object.keys(countries).length
250
>
...

example usage

var iso31662 = require('iso3166-2')