1.2.3 • Published 6 months ago

nothing-yt v1.2.3

Weekly downloads
-
License
MIT
Repository
-
Last release
6 months ago

YOUTUBE CONVERTER

Akan diupdae setiap error, maka gunakan tag latest agar update terbarukan otomatis

Contact And Channel

channel informasi untuk segala system dibawah naungan "nothing"

Installation

You can install the package using npm:

npm install nothing-yt

Usage

const { search, ytmp3, ytmp4 } = require('nothing-yt');

Quality Available

const audio = ["92", "128", "256", "320"]
const video = ["144", "360", "480", "720", "1080"]

Download Audio (MP3) 🎧

// url YouTube kamu
const url = 'https://www.youtube.com/watch?v=YOUR_VIDEO_ID';

// quality download, pilih di Quality Available
const quality = "128"

/* 
 * atau kamu bisa langsung url
 * saja untuk default quality (128)
 * example: ytmp3(url)
*/

ytmp3(url, quality)
    .then(result => {
        if (result.status) {
            console.log('Download Link:', result.download);
            console.log('Metadata:', result.metadata);
        } else {
            console.error('Error:', result.result);
        }
    });

Download Video (MP4) 🗃️

// url YouTube kamu
const url = 'https://www.youtube.com/watch?v=YOUR_VIDEO_ID';

// quality download, pilih di Quality Available
const quality = "360"

/* 
 * atau kamu bisa langsung url
 * saja untuk default quality (360)
 * example: ytmp4(url)
*/

ytmp4(url, quality)
    .then(result => {
        if (result.status) {
            console.log('Download Link:', result.download);
            console.log('Metadata:', result.metadata);
        } else {
            console.error('Error:', result.result);
        }
    });

Search Video 🍟

const query = 'your search term';

search(query)
    .then(result => {
        if (result.status) {
            console.log('Search Results:', result.results);
        } else {
            console.error('Error:', result.result);
        }
    });