# is-uic-location-code

> Check if given value is a valid UIC location code.

Latest version **0.0.1** (published 2018-11-02) · ISC license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install is-uic-location-code
pnpm add is-uic-location-code
yarn add is-uic-location-code
bun add is-uic-location-code
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2018-11-02 |
| First published | 2018-11-02 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 1 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Julius Tens |
| Maintainers | juliuste |
| Keywords | uic, location, code, enee, 920-2, railway, train, union, international, station |

## Links

- npm: https://www.npmjs.com/package/is-uic-location-code
- Repository: https://github.com/juliuste/is-uic-location-code
- Issues: https://github.com/juliuste/is-uic-location-code/issues
- npm.io page: https://npm.io/package/is-uic-location-code

## Dependencies (1)

- [uic-codes](https://npm.io/package/uic-codes.md) ^0.3.0

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2018-11-02
- 0.0.0 — 2018-11-02

## README

# is-uic-location-code

Check if given value is a valid [UIC location code (ENEE)](https://uic.org/location-codes-enee). Uses the [`uic-codes`](https://github.com/derhuerst/uic-codes) package. Note that only 7-character codes are considered valid for now (instead of 8-digit with checksum, as specified by UIC), because most operators don't provide it, so that 8-digit codes are more likely the result of bugs or inconsistencies.

[![npm version](https://img.shields.io/npm/v/is-uic-location-code.svg)](https://www.npmjs.com/package/is-uic-location-code)
[![Build Status](https://travis-ci.org/juliuste/is-uic-location-code.svg?branch=master)](https://travis-ci.org/juliuste/is-uic-location-code)
[![Greenkeeper badge](https://badges.greenkeeper.io/juliuste/is-uic-location-code.svg)](https://greenkeeper.io/)
[![dependency status](https://img.shields.io/david/juliuste/is-uic-location-code.svg)](https://david-dm.org/juliuste/is-uic-location-code)
[![license](https://img.shields.io/github/license/juliuste/is-uic-location-code.svg?style=flat)](license)
[![chat on gitter](https://badges.gitter.im/juliuste.svg)](https://gitter.im/juliuste)

## Installation

```bash
npm install is-uic-location-code
```

## Usage

```js
const isUicLocationCode = require('is-uic-location-code')
isUicLocationCode('1000010') // true
isUicLocationCode('8000001') // true
isUicLocationCode('8777777') // true
isUicLocationCode(8777777) // false
isUicLocationCode('80-00001') // false
isUicLocationCode('800000001') // false
isUicLocationCode('0010000') // false
isUicLocationCode('80') // false
isUicLocationCode(null) // false
isUicLocationCode(undefined) // false
```

## Contributing

If you found a bug or want to propose a feature, feel free to visit [the issues page](https://github.com/juliuste/is-uic-location-code/issues).

---
_Source: https://npm.io/package/is-uic-location-code · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
