Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/derhuerst/vbb-short-station-name
Remove noise from VBB station names.
https://github.com/derhuerst/vbb-short-station-name
berlin bvg transit transport vbb
Last synced: 3 days ago
JSON representation
Remove noise from VBB station names.
- Host: GitHub
- URL: https://github.com/derhuerst/vbb-short-station-name
- Owner: derhuerst
- License: isc
- Created: 2016-05-15T18:51:26.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-05-03T15:54:21.000Z (over 4 years ago)
- Last Synced: 2024-12-08T16:52:14.741Z (25 days ago)
- Topics: berlin, bvg, transit, transport, vbb
- Language: JavaScript
- Homepage: https://github.com/derhuerst/vbb-short-station-name
- Size: 12.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
# vbb-short-station-name
**Removes stuff like " (Berlin)" from station names.** Shortens "strasse" to "str.".
- `S+U Foobar Bhf` -> `S+U Foobar`
- `S+U Foo Bar (Berlin)` -> `S+U Foo Bar`
- `S Foo-Straße` -> `S Foo-Str.`
- `S Foostrasse` -> `S Foostr.`[![npm version](https://img.shields.io/npm/v/vbb-short-station-name.svg)](https://www.npmjs.com/package/vbb-short-station-name)
[![build status](https://img.shields.io/travis/derhuerst/vbb-short-station-name.svg)](https://travis-ci.org/derhuerst/vbb-short-station-name)
[![dependency status](https://img.shields.io/david/derhuerst/vbb-short-station-name.svg)](https://david-dm.org/derhuerst/vbb-short-station-name)
[![dev dependency status](https://img.shields.io/david/dev/derhuerst/vbb-short-station-name.svg)](https://david-dm.org/derhuerst/vbb-short-station-name#info=devDependencies)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/vbb-short-station-name.svg)
[![gitter channel](https://badges.gitter.im/derhuerst/vbb-rest.svg)](https://gitter.im/derhuerst/vbb-rest)
[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst)## Installing
```shell
npm install vbb-short-station-name
```## Usage
```js
const shorten = require('vbb-short-station-name')
shorten('S Südkreuz Bhf (Berlin)') // -> 'S Südkreuz'
```## 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/vbb-short-station-name/issues).