# vbb-tokenize-station

> Make VBB station names search-safe.

Latest version **0.3.0** (published 2017-03-27) · ISC license · 0 weekly downloads

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

## Install

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

## Health

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

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.3.0 |
| Published | 2017-03-27 |
| First published | 2016-03-28 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6 |
| Dependencies | 1 |
| 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/vbb-tokenize-station
- Repository: https://github.com/derhuerst/vbb-tokenize-station
- Issues: https://github.com/derhuerst/vbb-tokenize-station/issues
- npm.io page: https://npm.io/package/vbb-tokenize-station

## 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

- 0.3.0 (latest) — 2017-03-27
- 0.2.1 — 2016-08-16
- 0.2.0 — 2016-06-24
- 0.1.6 — 2016-05-20
- 0.1.5 — 2016-05-10
- 0.1.1 — 2016-03-28
- 0.1.0 — 2016-03-28

## README

# *vbb-tokenize-station*

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/vbb-tokenize-station.svg)](https://www.npmjs.com/package/vbb-tokenize-station)
[![build status](https://img.shields.io/travis/derhuerst/vbb-tokenize-station.svg)](https://travis-ci.org/derhuerst/vbb-tokenize-station)
[![dependency status](https://img.shields.io/david/derhuerst/vbb-tokenize-station.svg)](https://david-dm.org/derhuerst/vbb-tokenize-station)
[![dev dependency status](https://img.shields.io/david/dev/derhuerst/vbb-tokenize-station.svg)](https://david-dm.org/derhuerst/vbb-tokenize-station#info=devDependencies)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/vbb-tokenize-station.svg)
[![gitter channel](https://badges.gitter.im/derhuerst/vbb-rest.svg)](https://gitter.im/derhuerst/vbb-rest)


## Installing

```shell
npm install vbb-tokenize-station
```


## Usage

```js
const tokenize = require('vbb-tokenize-station')
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/vbb-tokenize-station/issues).

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