New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vbb-parse-line

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vbb-parse-line

Parse VBB lines like M4, TXL, S42.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
68
decreased by-29.17%
Maintainers
1
Weekly downloads
 
Created
Source

vbb-parse-line

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

npm version build status ISC-licensed chat on gitter support me on Patreon

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

npm install vbb-parse-line

Usage

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

This will return the following.

{
	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.

Keywords

FAQs

Package last updated on 21 Jun 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc