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.
react-youtube-background
Advanced tools
A React component that uses a Youtube video as background for a container.
$ npm install react-youtube-background
Import the component
import YoutubeBackground from 'react-youtube-background'
Use the component in you render function
<YoutubeBackground
videoId={string} /* default -> null */
aspectRatio={string} /* default -> "16:9" */
overlay={string} /* default -> null | e.g. "rgba(0,0,0,.4)" */
className={string} /* default -> null */
nocookie={bool} /* default -> false | sets host to https:/*www.youtube-nocookie.com to avoid loading Google's cookies */
playerOptions={object} /* default -> {} | https://developers.google.com/youtube/player_parameters*/
onReady={func} /* default -> null | returns event with player object */
onEnd={func} /* default -> null | returns event with player object */
onPlay={func} /* default -> null | returns event with player object */
onPause={func} /* default -> null | returns event with player object */
onError={func} /* default -> null | returns event with player object */
onStateChange={func} /* default -> null | returns event with player object */
onPlaybackRateChange={func} /* default -> null | returns event with player object */
onPlaybackQualityChange={func} /* default -> null | returns event with player object */
>
{/* YOUR CONTENT */}
</YoutubeBackground>
FAQs
A library for playing Youtube videos in the background
The npm package react-youtube-background receives a total of 159 weekly downloads. As such, react-youtube-background popularity was classified as not popular.
We found that react-youtube-background 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.