https://github.com/williambelle/switzerland-postal-codes
Switzerland postal codes Javascript module.
https://github.com/williambelle/switzerland-postal-codes
npm-package postal-codes switzerland zip-codes
Last synced: 2 days ago
JSON representation
Switzerland postal codes Javascript module.
- Host: GitHub
- URL: https://github.com/williambelle/switzerland-postal-codes
- Owner: williambelle
- License: mit
- Created: 2015-10-25T16:14:50.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-04-07T16:52:11.000Z (about 3 years ago)
- Last Synced: 2024-11-09T08:15:20.349Z (6 months ago)
- Topics: npm-package, postal-codes, switzerland, zip-codes
- Language: JavaScript
- Homepage: https://williambelle.github.io/switzerland-postal-codes/
- Size: 259 KB
- Stars: 12
- Watchers: 2
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
switzerland-postal-codes
========================[![Build Status][github-actions-image]][github-actions-url]
[![Coverage Status][coverage-image]][coverage-url]
[![NPM version][npm-image]][npm-url]Switzerland postal codes Javascript module.
Install
-------```bash
npm i switzerland-postal-codes
```or
```bash
bower install switzerland-postal-codes
```Usage
-----```js
const 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](https://williambelle.github.io/switzerland-postal-codes/).
Data
----* Postal codes based on the [official postal codes database][1] from Swiss Post
* Geolocation based on the [Geonames database][2] licensed under a [Creative
Commons Attribution 3.0 License][3].Contributing
------------Contributions are always welcome.
See [Contributing](CONTRIBUTING.md).
Developer
---------* [William Belle](https://github.com/williambelle)
License
-------The MIT License (MIT)
[1]: https://www.post.ch/en/business/a-z-of-subjects/maintaining-customer-addresses/address-master-data
[2]: http://www.geonames.org/
[3]: http://creativecommons.org/licenses/by/3.0/
[npm-image]: https://img.shields.io/npm/v/switzerland-postal-codes.svg
[npm-url]: https://www.npmjs.com/package/switzerland-postal-codes
[github-actions-image]: https://github.com/williambelle/switzerland-postal-codes/workflows/Build/badge.svg
[github-actions-url]: https://github.com/williambelle/switzerland-postal-codes/actions
[coverage-image]: https://coveralls.io/repos/github/williambelle/switzerland-postal-codes/badge.svg
[coverage-url]: https://coveralls.io/github/williambelle/switzerland-postal-codes