Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thoriqazzikraa/ytdl
Youtube Downloader with custom video quality
https://github.com/thoriqazzikraa/ytdl
Last synced: 2 months ago
JSON representation
Youtube Downloader with custom video quality
- Host: GitHub
- URL: https://github.com/thoriqazzikraa/ytdl
- Owner: thoriqazzikraa
- License: apache-2.0
- Created: 2023-08-21T05:16:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-17T18:33:45.000Z (7 months ago)
- Last Synced: 2024-10-24T18:16:46.634Z (3 months ago)
- Language: JavaScript
- Size: 35.2 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Installation
```sh
> npm i @nechlophomeriaa/ytdl
```# Usage
```js
// Common JS
const { yt, ytmp3, ytmp4 } = require("@nechlophomeriaa/ytdl")
``````js
// ESM
import { yt, ytmp3, ytmp4 } from "@nechlophomeriaa/ytdl"
```# Example Audio Downloader
```js
;async () => {
const yt = await ytmp3("https://youtu.be/R95ILhksGt8")
console.log(yt)
}
```# Example Video Downloader
```js
/**
* @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