Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@niko-npm/wili
Advanced tools
Readme
English | Deutsch
A Node wrapper for the Wiener Linien public transport API
npm install wili
Example usage in script:
import { createWienerLinien } from 'wili';
const wili = createWienerLinien();
const options = {
relatedLine: ['U2', 'U4', 'U6']
};
try {
const data = await wili.trafficInfoList(options);
console.log(data.trafficInfos);
} catch (output) {
console.error(error);
}
:warning: For NodeJS versions lower than v18, the class needs to be instantiated with a fetch
-implementation
Example
import { createWienerLinien } from 'wili';
import fetch from 'isomorphic-fetch';
const wili = createWienerLinien(fetch);
Usage: monitor(rbl, [options])
Returns real-time data for a station, including train information such as identifier or accessibility features.
rbl
Type: String
, Integer
, Array
RBL number (Rechnergestütztes Betriebsleitsystem - computer-aided operations control system), can be found this website
options.activeTrafficInfo
Type: String
, Array
Disruption type (stoerungkurz
, stoerunglang
, or aufzugsinfo
)
Usage: newsList(options)
Returns news, elevator maintenance and other information
options.relatedLine
Type: String
, Integer
, Array
Train or bus number, e.g. U1, S7, 59A (case-insensitive)
options.relatedStop
Type: String
, Integer
, Array
Station ID
options.name
Type: String
, Array
Information category, e.g news
or aufzugsservice
Usage: trafficInfoList([options])
Returns interruption of operations and elevator outage
options.relatedLine
Type: String
, Integer
, Array
Train or bus number, e.g. U1, S7, 59A (case-insensitive)
options.relatedStop
Type: String
, Integer
, Array
Station ID
options.name
Type: String
, Array
Disruption type (stoerungkurz
, stoerunglang
, or aufzugsinfo
)
This work is licensed under The MIT License
FAQs
Fork of wili, a Node client for the Wiener Linien public transport API, common JS version
The npm package @niko-npm/wili receives a total of 0 weekly downloads. As such, @niko-npm/wili popularity was classified as not popular.
We found that @niko-npm/wili demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.