ytdownloader.js

1.0.9 • Public • Published

ytdownloader.js

Youtube Downloader - https://yt1s.io

Importing the Module (TS)

import { Youtube } from 'ytdownloader.js'

Importing the Module (JS)

const { Youtube } = require('ytdownloader.js')

Search Videos

await new Youtube().ytsearch("LSD - Genius")

Search and Downloading Videos

// MP3
await new Youtube().ytmp3("LSD - Genius", true)

// MP4
await new Youtube().ytmp4("LSD - Genius", true)

Download via URL

// MP3
await new Youtube().ytmp3("https://www.youtube.com/watch?v=iX66G5DzIQ4", false)

// MP4
await new Youtube().ytmp4("https://www.youtube.com/watch?v=iX66G5DzIQ4", false)

Response:

dl_link: string;
thumbnail: string;
title: string;
quality: string;
qualitys: string[];
url: string;
channel: string;
needSearch: boolean;

Package Sidebar

Install

npm i ytdownloader.js

Weekly Downloads

39

Version

1.0.9

License

MIT

Unpacked Size

29.2 kB

Total Files

11

Last publish

Collaborators

  • viniciusgdr