@silent-tech-offc/ytdl
v1.0.0
Published
Fast YouTube downloader for Node.js. Get video info, formats, MP3, MP4. Stream or download YouTube videos with one line of code.
Maintainers
Readme
@silent-tech-offc/ytdl
Fast YouTube downloader for Node.js. Stream, download, get info — one line of code.
Install
npm install @silent-tech-offc/ytdlUsage
const { info, stream, download } = require("@silent-tech-offc/ytdl");
const i = await info("https://youtu.be/dQw4w9WgXcQ");
console.log(i.title, i.duration, i.formats.length);
stream("https://youtu.be/dQw4w9WgXcQ").pipe(require("fs").createWriteStream("v.mp4"));API
info(url)-> metadata + all formatsstream(url, opts?)-> readable streamdownload(url)-> info + best progressive url
Why this package?
- TypeScript types
- Modern async API
- Stream + URL modes
- Built on the actively maintained @distube/ytdl-core
Keywords
youtube downloader, youtube dl, ytdl, youtube api, youtube mp3, youtube mp4, yt-dlp, download youtube video
License
MIT (c) silent-tech-offc
