1.0.1 • Published 5 years ago

iso-3166-2-mx v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

Deprecated

No Maintenance Intended

Use iso3166-2-db instead.


iso-3166-2-mx

The entry for Mexico in ISO 3166-2 which defines codes for the names of the principal subdivisions

Build Status

Downloads

  • iso-3166-2-mx.json: Object with codes member containing objects with the state code as key and subdivision name and category as values.

Last updated 2014-12-03

Getting started

Even though all files are provided here, you might want to update them yourself.

You'll need Node.js, then cd into this folder and npm install.

Run npm run generate to fetch the latest codes.

You can also use it as a Node module. Just install it npm install --save iso-3166-2-mx and then require it in your code:

var iso31662mx = require('iso-3166-2-mx');

console.log(iso31662mx.codes['MX-DIF']);

// {
//   "subdivisionName": "Distrito Federal",
//   "subdivisionCategory": "federal district"
// }

Credit

Inspired by norway-postal-codes

License

MIT © Alejandro Beltrán

1.0.1

5 years ago

1.0.0

5 years ago

0.2.2

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago