{"id":15592198,"url":"https://github.com/derhuerst/vbb-parse-line","last_synced_at":"2026-03-05T14:30:17.943Z","repository":{"id":57391003,"uuid":"55069146","full_name":"derhuerst/vbb-parse-line","owner":"derhuerst","description":"Parse VBB lines like M4, TXL, S42.","archived":false,"fork":false,"pushed_at":"2019-06-21T17:17:09.000Z","size":26,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T20:16:25.396Z","etag":null,"topics":["berlin","bvg","transit","transport","vbb"],"latest_commit_sha":null,"homepage":"https://github.com/derhuerst/vbb-parse-line","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/derhuerst.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-30T14:19:08.000Z","updated_at":"2020-07-30T12:33:50.000Z","dependencies_parsed_at":"2022-09-16T13:10:41.812Z","dependency_job_id":null,"html_url":"https://github.com/derhuerst/vbb-parse-line","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fvbb-parse-line","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fvbb-parse-line/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fvbb-parse-line/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derhuerst%2Fvbb-parse-line/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derhuerst","download_url":"https://codeload.github.com/derhuerst/vbb-parse-line/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239890160,"owners_count":19713922,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["berlin","bvg","transit","transport","vbb"],"created_at":"2024-10-02T23:58:12.402Z","updated_at":"2026-03-05T14:30:17.903Z","avatar_url":"https://github.com/derhuerst.png","language":"JavaScript","funding_links":["https://patreon.com/derhuerst"],"categories":[],"sub_categories":[],"readme":"# *vbb-parse-line*\n\n**Parses the names of VBB lines like `M4`, `TXL`, `S42`.**\n\n[![npm version](https://img.shields.io/npm/v/vbb-parse-line.svg)](https://www.npmjs.com/package/vbb-parse-line)\n[![build status](https://img.shields.io/travis/derhuerst/vbb-parse-line.svg)](https://travis-ci.org/derhuerst/vbb-parse-line)\n![ISC-licensed](https://img.shields.io/github/license/derhuerst/vbb-parse-line.svg)\n[![chat on gitter](https://badges.gitter.im/derhuerst.svg)](https://gitter.im/derhuerst)\n[![support me on Patreon](https://img.shields.io/badge/support%20me-on%20patreon-fa7664.svg)](https://patreon.com/derhuerst)\n\nBecause 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.\n\n\n## Installing\n\n```shell\nnpm install vbb-parse-line\n```\n\n\n## Usage\n\n```js\nconst parse = require('vbb-parse-line')\nparse('M4')\n```\n\nThis will return the following.\n\n```js\n{\n\tmode: 'train',\n\tproduct: 'tram',\n\tsymbol: 'M',\n\tnr: 4\n\tmetro: true  // buses \u0026 trams that run frequently \u0026 all day\n\texpress: false // buses that skip stations\n\tnight: false // buses replacing other lines in the night\n}\n```\n\n\n## Contributing\n\nIf 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).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fvbb-parse-line","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderhuerst%2Fvbb-parse-line","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderhuerst%2Fvbb-parse-line/lists"}