Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
A TFL API consumer to turn the TFL API into useful, easy to parse data
Add gem 'london_transport'
to your gem file bundle install
Set the TFL app key and id with:
LondonTransport.app_key = 'your-app-key'
LondonTransport.app_id = 'your-app-id'
Find the nearest tube stations from a long/lat value:
transport = LondonTransport::Tube.new(longitude: -0.1440493, latitude: 51.5152117)
transport.stations
will then return an array of the nearest 3 tube
stations containing a hash with their their distances (in metres) and lines,
to the point specified, within 500m.
[
{
"Oxford Circus Underground Station" => {
distance: => 147.70533261648208,
modes: ["tube"],
lines: ["bakerloo", "central", "victoria"]
},
{
"Bond Street Underground Station" => {
distance: 403.48258984823457,
modes: ["tube"],
lines: ["central", "jubilee"]
}
}
]
To set the size of the radius, just add radius to the initialisation attributes (radius is in metres):
transport = LondonTransport::Tube.new(longitude: -0.1440493, latitude: 51.5152117, radius: 600)
To return more than 3 stations, simply add the number you want as an argument on the stations method:
transport.stations(20)
FAQs
Unknown package
We found that london_transport 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
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.