
Research
/Security News
Popular Tinycolor npm Package Compromised in Supply Chain Attack Affecting 40+ Packages
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
@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
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.
Research
/Security News
Malicious update to @ctrl/tinycolor on npm is part of a supply-chain attack hitting 40+ packages across maintainers
Security News
pnpm's new minimumReleaseAge setting delays package updates to prevent supply chain attacks, with other tools like Taze and NCU following suit.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.