
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
yt-directlink
Advanced tools
Gets information on a video (or playlist) using youtube-dl.
Like the getInfo function of node-youtube-dl, but promisified and event-based.
const { getInfo } = require('ytdl-getinfo')
Basic example:
getInfo('https://www.youtube.com/watch?v=v7BddpYYNGk').then(info => {
// info.items[0] should contain the output of youtube-dl --dump-json
console.log(info.items[0].title)
})
Video Search:
getInfo('Muzzy - Endgame').then(info => {
// info.items[0] contains information of the first search result
console.log(info.items[0].url)
})
Custom Arguments:
getInfo('v7BddpYYNGk', ['--format=bestaudio']).then(info => {
// ...
})
Playlists (event based)
getInfo('PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re').then(info => {
// info.partial is true for playlists
if (info.partial) {
info.on('video', v => console.log(v.title))
info.on('done', () => console.log(`Playlist contains ${info.items.length} items.`))
}
})
Playlists (promise based)
getInfo('PLwiyx1dc3P2JR9N8gQaQN_BCvlSlap7re', [], true).then(info => {
// info.items contains all the playlist items
})
Multiple queries at once (acts like a playlist)
getInfo(['v7BddpYYNGk', 'BMhrBLD_B2U']).then(info => {
// ...
})
require('ytdl-getinfo').update().then(version => {
console.log(`youtube-dl updated to version ${version}`)
})
FAQs
README.md
We found that yt-directlink 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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.