Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including switzerland-postal-codes with all npm packages installed. Try it out:

var switzerlandPostalCodes = require("switzerland-postal-codes")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

switzerland-postal-codes v3.0.1

Switzerland postal codes Javascript module

Switzerland Postal Codes

Build Status Coverage Status Dependency Status NPM version

Switzerland postal codes Javascript module

Install

npm i switzerland-postal-codes --save

or

bower install switzerland-postal-codes

Usage

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

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

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

Demo

See the demo.

Data

Contributing

Contributions are always welcome.

See Contributing.

Developer

License

The MIT License (MIT)

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free