Philipp Partosch 46a936d7de added all files to project | 2 years ago | |
---|---|---|
.. | ||
index.js | 2 years ago | |
license.md | 2 years ago | |
package.json | 2 years ago | |
readme.md | 2 years ago |
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 install vbb-short-station-name
const shorten = require('vbb-short-station-name')
shorten('S Südkreuz Bhf (Berlin)') // -> 'S Südkreuz'
If you have a question, found a bug or want to propose a feature, have a look at the issues page.