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.
youtube-chapters-finder
Advanced tools
A tiny npm library that gets chapters from any Youtube video
I wanted to get the chapters from a youtube video, but I couldn't find such functionality in the Youtube API. So I made one.
npm i youtube-chapters-finder
Get all chapters from this youtube video: https://youtube.com/watch?v=Gi8LUnhP5yU
import YoutubeChaptersGetter from 'youtube-chapters-finder'
async function getChapters() {
return await YoutubeChaptersGetter.getChapter('Gi8LUnhP5yU') // video id
}
// expected output:
[
{
title: 'Introduction',
time: '0:00',
url: 'https://youtube.com/watch?v=Gi8LUnhP5yU&t=0s'
},
{
title: 'Are there intelligent life out there',
time: '2:27',
url: 'https://youtube.com/watch?v=Gi8LUnhP5yU&t=147s'
},
{
title: 'We dont mean all of space',
time: '3:02',
url: 'https://youtube.com/watch?v=Gi8LUnhP5yU&t=182s'
},
{
title: 'Intelligent life',
time: '5:42',
url: 'https://youtube.com/watch?v=Gi8LUnhP5yU&t=342s'
},
...
]
This package is intended to be used in server-side applications (Next.js included). I may add support for client-side applications in the future.
MIT License
FAQs
A tiny npm library that gets chapters from any Youtube video
We found that youtube-chapters-finder demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.