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.
YouTube Images can be used to extract thumbnails/images for a given youtube video ID or URL without a developer ID. It uses a URL constructor instead of an API
Ruby 1.9 or greater
YouTube Images is released as a Ruby Gem. The gem is to be installed within a Ruby or Rails application. To install, simply add the following to your Gemfile:
# Gemfile
gem 'youtube_images'
After updating your bundle, you can use YouTubeImages::For("video-id") function within your ruby code
For example if you want to fetch the default thumbnail for youtube URL you can do something like this
YouTubeImages::For("http://www.youtube.com/watch?v=5zVaFjSxAZs")[:default]
# or
YouTubeImages::For("5zVaFjSxAZs")[:default]
YouTubeImages::For("http://www.youtube.com/watch?v=5zVaFjSxAZs")
will return a hash for default, medium, high and maximum dimension images
So to access different dimension images you can do something like this
YouTubeImages::For("http://www.youtube.com/watch?v=5zVaFjSxAZs")[:medium]
YouTubeImages::For("http://www.youtube.com/watch?v=5zVaFjSxAZs")[:high]
YouTubeImages::For("http://www.youtube.com/watch?v=5zVaFjSxAZs")[:maximum]
FAQs
Unknown package
We found that youtube_images 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.