Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
dublinbusjs
Advanced tools
This module gets realtime and stop information from the Dublin Bus REST API. It's really simple to use just look at the examples.
Any bug reports / pull requests are welcome, just follow the contributing guide (At the end of this).
You have to install the module before you can use it:
npm install --save dublinbusjs
Now this exposes two functions, getStopData() and getRealtimeData().
const dublinBus = require('dublinbusjs');
dublinBus.getStopData(3787).then(console.log).catch(console.error)
/* Prints:
{
"stopid": "3787",
"displaystopid": "3787",
"shortname": "Skerries Road",
"shortnamelocalized": "Bóthar na Sceirí",
"fullname": "Skerries Road",
"fullnamelocalized": "",
"latitude": "53.54684889",
"longitude": "-6.101198889",
"lastupdated": "12/12/2016 09:03:15",
"operators": [
{
"name": "bac",
"routes": [
"33",
"33X",
"33A"
]
}
]
}
*/
dublinBus.getRealtimeData(7602).then(console.log).catch(console.error)
/* Prints:
[
{
"arrivaldatetime": "14/01/2017 13:16:27",
"duetime": "43",
"departuredatetime": "14/01/2017 13:16:27",
"departureduetime": "43",
"scheduledarrivaldatetime": "14/01/2017 13:21:00",
"scheduleddeparturedatetime": "14/01/2017 13:21:00",
"destination": "Balbriggan",
"destinationlocalized": "Baile Brigín",
"origin": "Abbey St",
"originlocalized": "Sr. na Mainistreach",
"direction": "Outbound",
"operator": "bac",
"additionalinformation": "",
"lowfloorstatus": "no",
"route": "33",
"sourcetimestamp": "14/01/2017 12:16:31",
"monitored": "true"
}
]
*/
All bug reports and pull requests are welcome! If you wish to add something, make a fix or make a change, just:
Make sure to make your changes in the 'src' directory, and run gulp
when your finished so it will build!
FAQs
Get the Realtime and Stop Information from the Dublin Bus REST API
The npm package dublinbusjs receives a total of 2 weekly downloads. As such, dublinbusjs popularity was classified as not popular.
We found that dublinbusjs 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.