@nechlophomeriaa/ytdl

0.0.11 • Public • Published

Installation

> npm i @nechlophomeriaa/ytdl

Usage

const { ytmp3, ytmp3v2, ytmp4, ytmp4v2 } = require("@nechlophomeriaa/ytdl")

Version 2

Use ytmp3v2 and ytmp4v2 if first version not works

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)
}

Thanks for using this module

Readme

Keywords

Package Sidebar

Install

npm i @nechlophomeriaa/ytdl

Weekly Downloads

19

Version

0.0.11

License

ISC

Unpacked Size

20 kB

Total Files

8

Last publish

Collaborators

  • nechlophomeria