# tokenize-vbb-station-name

> Make VBB station names search-safe.

Latest version **1.1.0** (published 2019-06-30) · ISC license · 0 weekly downloads

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

## Install

```sh
npm install tokenize-vbb-station-name
pnpm add tokenize-vbb-station-name
yarn add tokenize-vbb-station-name
bun add tokenize-vbb-station-name
```

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2019-06-30 |
| First published | 2019-06-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 1 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jannis R |
| Maintainers | derhuerst |
| Keywords | vbb, stations, search, url-safe, slug |

## Links

- npm: https://www.npmjs.com/package/tokenize-vbb-station-name
- Repository: https://github.com/derhuerst/tokenize-vbb-station-name
- Issues: https://github.com/derhuerst/tokenize-vbb-station-name/issues
- npm.io page: https://npm.io/package/tokenize-vbb-station-name

## Dependencies (1)

- [normalize-for-search](https://npm.io/package/normalize-for-search.md) ^2.0.1

## Alternatives

- [base64url](https://npm.io/package/base64url.md) — 6.1M weekly downloads
- [get-installed-path](https://npm.io/package/get-installed-path.md) — 502.9K weekly downloads
- [@uppy/url](https://npm.io/package/@uppy/url.md) — 185.8K weekly downloads
- [@d3fc/d3fc-shape](https://npm.io/package/@d3fc/d3fc-shape.md) — 16.2K weekly downloads
- [localizer](https://npm.io/package/localizer.md) — 226 weekly downloads

## Recent versions

- 1.1.0 (latest) — 2019-06-30
- 1.0.0 — 2019-06-30

## README

# tokenize-vbb-station-name

Station names in [VBB](http://www.vbb.de) are terribly inconsistent and user's search queries are not perfect either. This module tries to compensate all the weird edge cases:

- `S Südkreuz Bhf (Berlin)` -> `sbahn suedkreuz bahnhof berlin`
- `S Beusselstr` -> `sbahn beussel strasse`
- `S+U Warschauer Str.` -> `sbahn ubahn warschauer strasse`
- `Charité - Campus Benjamin Franklin (Berlin)` -> `charite campus benjamin franklin berlin`

[![npm version](https://img.shields.io/npm/v/tokenize-vbb-station-name.svg)](https://www.npmjs.com/package/tokenize-vbb-station-name)
[![build status](https://img.shields.io/travis/derhuerst/tokenize-vbb-station-name.svg)](https://travis-ci.org/derhuerst/tokenize-vbb-station-name)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/tokenize-vbb-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 tokenize-vbb-station-name
```


## Usage

```js
const tokenize = require('tokenize-vbb-station-name')

tokenize('S+U Warschauer Str.')
.join(' ') // -> 'sbahn ubahn warschauer strasse'
```

Called with no arguments or an invalid argument, `tokenize` will return `[]`.


## 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/tokenize-vbb-station-name/issues).

---
_Source: https://npm.io/package/tokenize-vbb-station-name · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
