Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/derhuerst/uic-codes
UIC country codes.
https://github.com/derhuerst/uic-codes
data dataviz i18n transit
Last synced: 9 days ago
JSON representation
UIC country codes.
- Host: GitHub
- URL: https://github.com/derhuerst/uic-codes
- Owner: derhuerst
- License: isc
- Created: 2016-09-03T03:09:00.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-14T23:30:53.000Z (over 7 years ago)
- Last Synced: 2024-11-03T01:23:01.947Z (14 days ago)
- Topics: data, dataviz, i18n, transit
- Language: JavaScript
- Homepage: https://github.com/derhuerst/uic-codes
- Size: 9.77 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# uic-codes
**Map [UIC country codes](https://en.wikipedia.org/wiki/List_of_UIC_country_codes) to [ISO 3166 codes](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3#Current_codes) and vica versa.**
[![npm version](https://img.shields.io/npm/v/uic-codes.svg)](https://www.npmjs.com/package/uic-codes)
[![build status](https://img.shields.io/travis/derhuerst/uic-codes.svg)](https://travis-ci.org/derhuerst/uic-codes)
[![dev dependency status](https://img.shields.io/david/dev/derhuerst/uic-codes.svg)](https://david-dm.org/derhuerst/uic-codes#info=devDependencies)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/uic-codes.svg)
[![chat on gitter](https://badges.gitter.im/derhuerst.svg)](https://gitter.im/derhuerst)## Installing
```shell
npm install uic-codes
```## Usage
```js
const {toISO, toUIC} = require('uic-codes')// Germany
toUIC.DEU // 80
toISO[80] // 'DEU'
toISO.D // 'DEU'
```## Contributing
If you **have a question**, **found a bug** or want to **propose a feature**, have a look at [the issues page](https://github.com/derhuerst/uic-codes/issues).