Socket
Socket
Sign inDemoInstall

iso3166-2

Package Overview
Dependencies
152
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    iso3166-2

Tiny, fast, modular ISO 3166-2 lookup library


Version published
Weekly downloads
6
increased by20%
Maintainers
1
Install size
14.5 MB
Created
Weekly downloads
 

Readme

Source

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')

Keywords

FAQs

Last updated on 19 Oct 2015

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc