{"id":17368138,"url":"https://github.com/juliuste/is-uic-location-code","last_synced_at":"2025-10-31T07:31:19.468Z","repository":{"id":39779251,"uuid":"155810690","full_name":"juliuste/is-uic-location-code","owner":"juliuste","description":"Check if given value is a valid UIC location code.","archived":false,"fork":false,"pushed_at":"2020-05-25T04:13:26.000Z","size":41,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-26T03:47:55.994Z","etag":null,"topics":["library","public-transport","railway"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/juliuste.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-11-02T03:44:31.000Z","updated_at":"2022-05-25T23:31:18.000Z","dependencies_parsed_at":"2022-09-26T16:20:47.458Z","dependency_job_id":null,"html_url":"https://github.com/juliuste/is-uic-location-code","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliuste%2Fis-uic-location-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliuste%2Fis-uic-location-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliuste%2Fis-uic-location-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/juliuste%2Fis-uic-location-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/juliuste","download_url":"https://codeload.github.com/juliuste/is-uic-location-code/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239139709,"owners_count":19588246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["library","public-transport","railway"],"created_at":"2024-10-15T23:58:30.939Z","updated_at":"2025-10-31T07:31:19.164Z","avatar_url":"https://github.com/juliuste.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# is-uic-location-code\n\nCheck 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.\n\n[![npm version](https://img.shields.io/npm/v/is-uic-location-code.svg)](https://www.npmjs.com/package/is-uic-location-code)\n[![Build Status](https://travis-ci.org/juliuste/is-uic-location-code.svg?branch=master)](https://travis-ci.org/juliuste/is-uic-location-code)\n[![Greenkeeper badge](https://badges.greenkeeper.io/juliuste/is-uic-location-code.svg)](https://greenkeeper.io/)\n[![dependency status](https://img.shields.io/david/juliuste/is-uic-location-code.svg)](https://david-dm.org/juliuste/is-uic-location-code)\n[![license](https://img.shields.io/github/license/juliuste/is-uic-location-code.svg?style=flat)](license)\n[![chat on gitter](https://badges.gitter.im/juliuste.svg)](https://gitter.im/juliuste)\n\n## Installation\n\n```bash\nnpm install is-uic-location-code\n```\n\n## Usage\n\n```js\nconst isUicLocationCode = require('is-uic-location-code')\nisUicLocationCode('1000010') // true\nisUicLocationCode('8000001') // true\nisUicLocationCode('8777777') // true\nisUicLocationCode(8777777) // false\nisUicLocationCode('80-00001') // false\nisUicLocationCode('800000001') // false\nisUicLocationCode('0010000') // false\nisUicLocationCode('80') // false\nisUicLocationCode(null) // false\nisUicLocationCode(undefined) // false\n```\n\n## Contributing\n\nIf 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).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliuste%2Fis-uic-location-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjuliuste%2Fis-uic-location-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjuliuste%2Fis-uic-location-code/lists"}