Skip to content

Latest commit

 

History

History
81 lines (58 loc) · 2.25 KB

README.md

File metadata and controls

81 lines (58 loc) · 2.25 KB

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)