
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Description goes here.
Remember to always require 'mbta-realtime' before you use it.
require 'mbta-realtime' # 'mbta_realtime' also works
Initialize it with your API key.
@mbta = MBTARealtime::Client.new(api_key: "your_api_key")
If you keep your API key in an environment variable (or .env file with Dotenv), such as
export MBTA_API_KEY=wu9RGmG7OoT2UZnHuwN9Xw
you can initialize your MBTA Realtime client with
@mbta = MBTARealtime.new(ENV['MBTA_API_KEY'])
All methods return Ruby hashes.
#routes
returns all the routes in the system.
@mbta.routes
# => {"mode"=>[{"route_type"=>"0", "mode_name"=>"Subway", "route"=>[{"route_id"=>"810_", "route_name"=>"Green Line"}, {"route_id"=>"813_", "route_name"=>"Green Line"}
# ... rest truncated for brevity ...
#routes_by_stop(stop_id)
returns all the routes for a given stop, indicated by its unique stop id.
@mbta.routes_by_stop(1395)
# => {"stop_id"=>"1395", "stop_name"=>"Dartmouth St @ Appleton St", "mode"=>[{"route_type"=>"3", "mode_name"=>"Bus", "route"=>[{"route_id"=>"10", "route_name"=>"10"}, {"route_id"=>"170", "route_name"=>"170"}]}]}
NotImplementedError
s)Stop
, Route
, Prediction
, etc., with other value objects nested within.Copyright (c) 2014 Matt Cloyd. See LICENSE.txt for further details.
FAQs
Unknown package
We found that mbta-realtime 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.