vbb-short-station-name

1.0.1 • Public • Published

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 build status dependency status dev dependency status ISC-licensed gitter channel support me on Patreon

Installing

npm install vbb-short-station-name

Usage

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.

Package Sidebar

Install

npm i vbb-short-station-name

Weekly Downloads

58

Version

1.0.1

License

ISC

Unpacked Size

3.67 kB

Total Files

4

Last publish

Collaborators

  • derhuerst