Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Sanntid.js is a node.js module for getting real-time data from the public Ruter API.
Sanntid.js is a node.js module for getting real-time data from the public Ruter API.
Simply do
npm install sanntid
Use the -g
option to make the command globally available as sanntid
.
./sanntid.js <locationID>
Or you can search for a location:
./sanntid.js sofienberg
The result would be something like this:
🚋 17 Rikshospitalet - in 2 minutes
🚌 31 Snarøya - in 2 minutes
A list of locations and their IDs can be downloaded from Ruter lab's pages.
You can limit the results to a specific direction by specifying 1 or 2 as the second parameter:
./sanntid.js sofienberg 1
var sanntid = require('./sanntid'),
allLocations = sanntid.list(),
locations = sanntid.search('sofienberg');
for (var i = 0; i < locations.length; i++) {
sanntid.getRealtimeData(locations[i], '1', function (data) {
console.log(data);
});
}
Run the tests using the npm test
command:
npm test
The MIT License
Copyright © 2015 - Mathias Novas
FAQs
Sanntid.js is a node.js module for getting real-time data from the public Ruter API.
The npm package sanntid receives a total of 0 weekly downloads. As such, sanntid popularity was classified as not popular.
We found that sanntid 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.