Skip to content

mazero/switzerland-postal-codes

 
 

Repository files navigation

Switzerland Postal Codes

Build Status Coverage Status Dependency Status NPM version Bower version

Switzerland postal codes Javascript module

Usage

npm

$ npm install switzerland-postal-codes

Then you can require('switzerland-postal-codes').

var postalCodes = require('switzerland-postal-codes');

console.log(postalCodes['1260']);
//=> 'Nyon'

Bower

$ bower install switzerland-postal-codes

Then use dist/postal-codes.json or dist/postal-codes-full.json in your HTML.

Download

Download postal-codes.json or postal-codes-full.json from the Github Release pages

Demo

See the demo.

Build

You need Node.js, then cd into this folder and

$ npm install
$ ./src/converter.js

Data

License

The MIT License (MIT)

About

Switzerland postal codes Javascript module

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%