
Product
Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
@bret/is-youtube-url
Advanced tools
Check if a given URL belongs to YouTube or Google Video domains.
npm install @bret/is-youtube-url
import isYouTubeUrl from '@bret/is-youtube-url';
const url = new URL('https://www.youtube.com/watch?v=dQw4w9WgXcQ');
console.log(isYouTubeUrl(url)); // true
const invalidUrl = new URL('https://www.example.com');
console.log(isYouTubeUrl(invalidUrl)); // false
isYouTubeUrl(parsedUrl)
parsedUrl
(URL): A valid URL
object that has already been validated.boolean
: true
if the URL belongs to YouTube or Google Video domains, otherwise false
.www.youtube.com
youtube.com
m.youtube.com
youtu.be
youtube-nocookie.com
googlevideo.com
MIT
FAQs
WIP - nothing to see here
The npm package @bret/is-youtube-url receives a total of 144 weekly downloads. As such, @bret/is-youtube-url popularity was classified as not popular.
We found that @bret/is-youtube-url demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.