@nechlophomeriaa/ytdl
v0.0.15
Published
Youtube downloader Audio/Video and custom quality of.video
Downloads
33
Maintainers
Readme
Installation
> npm i @nechlophomeriaa/ytdl
Usage
// Common JS
const { yt, ytmp3, ytmp4 } = require("@nechlophomeriaa/ytdl")
// ESM
import { yt, ytmp3, ytmp4 } from "@nechlophomeriaa/ytdl"
Example Audio Downloader
;async () => {
const yt = await ytmp3("https://youtu.be/R95ILhksGt8")
console.log(yt)
}
Example Video Downloader
/**
* @param { String } url
* @param { String | Number } quality
*/
;async () => {
const yt = await ytmp4("https://youtu.be/R95ILhksGt8", 1080) //If quality is undefined, it will resolve with 360p quality
console.log(yt)
}