# vbb-parse-line

> Parse VBB lines like M4, TXL, S42.

Latest version **1.0.0** (published 2019-06-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install vbb-parse-line
pnpm add vbb-parse-line
yarn add vbb-parse-line
bun add vbb-parse-line
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-06-21 |
| First published | 2016-03-30 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=8 |
| Dependencies | 0 |
| Unpacked size | 5.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jannis R |
| Maintainers | derhuerst |
| Keywords | vbb, parse, line, gtfs, suburban, subway, regional, tram, bus, ferry |

## Links

- npm: https://www.npmjs.com/package/vbb-parse-line
- Repository: https://github.com/derhuerst/vbb-parse-line
- Issues: https://github.com/derhuerst/vbb-parse-line/issues
- npm.io page: https://npm.io/package/vbb-parse-line

## Alternatives

- [babylon](https://npm.io/package/babylon.md) — 5.1M weekly downloads
- [csscolorparser](https://npm.io/package/csscolorparser.md) — 3.7M weekly downloads
- [expr-eval-fork](https://npm.io/package/expr-eval-fork.md) — 1.5M weekly downloads
- [@leeoniya/ufuzzy](https://npm.io/package/@leeoniya/ufuzzy.md) — 247.7K weekly downloads
- [xml-parser](https://npm.io/package/xml-parser.md) — 78.4K weekly downloads

## Recent versions

- 1.0.0 (latest) — 2019-06-21
- 0.3.1 — 2018-01-29
- 0.3.0 — 2018-01-17
- 0.2.6 — 2018-01-17
- 0.2.5 — 2017-06-29
- 0.2.4 — 2017-05-18
- 0.2.3 — 2017-05-18
- 0.2.2 — 2017-03-21
- 0.2.1 — 2017-03-20
- 0.2.0 — 2016-05-24
- 0.1.1 — 2016-04-08
- 0.1.0 — 2016-03-30

## README

# *vbb-parse-line*

**Parses the names of VBB lines like `M4`, `TXL`, `S42`.**

[![npm version](https://img.shields.io/npm/v/vbb-parse-line.svg)](https://www.npmjs.com/package/vbb-parse-line)
[![build status](https://img.shields.io/travis/derhuerst/vbb-parse-line.svg)](https://travis-ci.org/derhuerst/vbb-parse-line)
![ISC-licensed](https://img.shields.io/github/license/derhuerst/vbb-parse-line.svg)
[![chat on gitter](https://badges.gitter.im/derhuerst.svg)](https://gitter.im/derhuerst)
[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst)

Because this module tries to guess the mode of transport from line names, it is doomed to have conflicts. Right now, it is primarily focused on Berlin, until we have a more robust solution to find out more about lines.


## Installing

```shell
npm install vbb-parse-line
```


## Usage

```js
const parse = require('vbb-parse-line')
parse('M4')
```

This will return the following.

```js
{
	mode: 'train',
	product: 'tram',
	symbol: 'M',
	nr: 4
	metro: true  // buses & trams that run frequently & all day
	express: false // buses that skip stations
	night: false // buses replacing other lines in the night
}
```


## Contributing

If you have a question or have difficulties using `vbb-parse-line`, please double-check your code and setup first. If you think you have found a bug or want to propose a feature, refer to [the issues page](https://github.com/derhuerst/vbb-parse-line/issues).

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