Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vbb-stations-connected-to

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vbb-stations-connected-to

Get all stations connected to a station.

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
2
Weekly downloads
 
Created
Source

vbb-stations-connected-to

Get all stations connected to a station.

npm version ISC-licensed support me via GitHub Sponsors chat with me on Twitter

Installing

npm install vbb-stations-connected-to

Usage

const connectedTo = require('vbb-stations-connected-to')

console.log(connectedTo['900000100001']) // S+U Friedrichstr.
[
	'900000100025',
	'900000100007',
	'900000100002',
	'900000003201',
	'900000100003',
	'900000100719',
	'900000100540',
	'900000100513',
	'900000100047',
	'900000100019',
	'900000100027'
]

Get station IDs from vbb-stations.

There's also detailed but heavy full.json:

const connectedTo = require('vbb-stations-connected-to/full.json')

console.log(connectedTo['900000100001']) // S+U Friedrichstr.
{
	'900000100025': [
		'10141_109', // these are line ids
		'10142_109',
		'10143_109',
		'10144_109',
		'10145_109',
		'11346_109'
	],
	'900000100007': [
		'10141_109',
		'10142_109',
		'10143_109',
		'10144_109',
		'10145_109',
		'11346_109'
	],
	'900000100002': [
		'10148_109',
		'10149_109',
		'10157_109',
		'10158_109',
		'10162_109',
		'10163_109',
		'10165_109',
		'10166_109',
		'16034_109'
	],
	'900000003201': [
		'10148_109',
		'10149_109',
		'10157_109',
		'10158_109',
		'10162_109',
		'10163_109',
		'10165_109',
		'10166_109',
		'16034_109',
		'10845_100',
		'10847_100',
		'10865_100',
		'10878_100',
		'10941_100',
		'12048_100',
		'17605_700',
		'16869_100'
	],
	'900000100003': [
		'10865_100',
		'10878_100',
		'10885_100',
		'10890_100',
		'12048_100',
		'12051_100',
		'17605_700',
		'16869_100'
	],
	'900000100719': ['17301_900', '17438_900', '17470_700'],
	'900000100540': ['17301_900', '17438_900'],
	'900000100513': ['17318_700', '17470_700'],
	'900000100047': ['17318_700'],
	'900000100019': ['17521_400'],
	'900000100027': ['17521_400']
}

Contributing

If you have a question or have difficulties using vbb-stations-connected-to, 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 28 Nov 2022

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