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.
deprecated-zditm-szczecin-node-api-client
Advanced tools
Readme
Unofficial Node.js API client based on "Dla programistów" docs webpage.
stops
- Information about public transportation stops.lines
- Information about public transport lines.trajectories
- Information on the geographic routing of public transportation lines.vehicles
- Information on the current location of public transport vehicles.displays
- Information about the nearest departures from the public transport stop (virtual board).timetable-change-descriptions
- Information on recent and upcoming schedule changes.ticket-offices
- Ticket office information.ticket-machines
- Information about stationary ticket vending machines.Install with:
npm i zditm-szczecin-node-api-client
Then you can use it like this:
import {
Displays,
Vehicles,
GenericClient,
} from "zditm-szczecin-node-api-client";
function showRateLimit(apiResponse: GenericClient) {
console.log(
`- Available requets rate limit ${apiResponse.availableRateLimit} (of ${apiResponse.rateLimit}) -`
);
}
const displayApi = new Displays({ userAgent: "Nodejs-API-client-byOskar" });
const stopId = 30622;
displayApi.getDisplayData(stopId).then(({ stop_name, departures }) => {
showRateLimit(displayApi);
if (departures.length) {
console.log(
`From the ${stop_name} stop line ${departures[0].line_number} will soon depart.`
);
} else {
console.log(`Nothing is going to depart from ${stop_name}.`);
}
});
const vehiclesApi = new Vehicles({ apiVersion: "v1" });
vehiclesApi.getVehiclesData().then(({ data: [{ line_number, next_stop }] }) => {
showRateLimit(vehiclesApi);
console.log(`Vehicle ${line_number} travels to the ${next_stop}.`);
});
Used node version v20.4.0.
To run the demo file:
git clone https://gitlab.com/rakso/zditm-szczecin-node-api-client.git
npm i
npm run start:dev
FAQs
Unofficial Node.js API client for ZDiTM Szczecin.
The npm package deprecated-zditm-szczecin-node-api-client receives a total of 0 weekly downloads. As such, deprecated-zditm-szczecin-node-api-client popularity was classified as not popular.
We found that deprecated-zditm-szczecin-node-api-client 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.