
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
This is a node.js module for fetching info from VR's Junat kartalla-service.
You can fetch info from different stations and trains.
Documentation of the API is available here:
http://www.vr.fi/fi/index/palvelut/avoin_data/Junatkartalla-rajapinta.html
npm install vr
Stations are named by codes. The list of the train stations with their code is available at:
http://www.vr.fi/fi/index/palvelut/mobiilipalvelut/popup_asemien_tunnukset.html
Also, the service also gives you information about whetever train is canceled or why it is delayed with code names.
The list of them is available at Finnish Transport Agency's site:
http://www2.liikennevirasto.fi/julkaisut/pdf4/rhk_2008-a1_aikataulusuunnittelu_ja_web.pdf
There's three methods in this module.
Gives you station's departing and arriving trains. You need to use code name of the station. For example, Lahti is LH.
var vr = require('vr');
vr.getStationInfo('LH', function (info) {
console.log(info);
});
Gives you all trains that are on the tracks at the moment.
var vr = require('vr');
vr.getTrains(function (trains) {
console.log(trains);
});
Gives information about the stations that the train with given guid goes by. Also gives latitude/longitude, speed and direction of train. (Use guid from getStationInfo/getTrains in this.)
var vr = require('vr');
vr.getTrain('S79', function (train) {
console.log(train);
});
FAQs
Wrapper for fetching info from VR's Junat kartalla-service
We found that vr demonstrated a not healthy version release cadence and project activity because the last version was released 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.