Skip to content

uriah-dev/ytdl-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ytdl-client

This is a wrapper around ytdl-core to make compatible with browsers. It can be used within frontend frameworks.

How To Install

npm install ytdl-client

or

npm i ytdl-client

Usage

import ytdl_client from "ytdl-client";
    or
const ytdl_client = require("ytdl-client");

ytdl_client({
    proxyUrl: '', //any proxy can be used here eg:https://cors-anywhere.herokuapp.com/ or http://localhost:8080
    // proxyquireStubs: {}, arguments mapped directly to proxyquireify
    // For more info, see https://www.npmjs.com/package/proxyquireify
})
    .getInfo('https://www.youtube.com/watch?v=WPdbEbwNTcU')
    .then(info=>console.log(info))
    .catch(err=>{throw err;});

You should remember to make it awaitable, You can use cors-anywhere to set up a proxy.

About

Is a ytdl-core wrapper to make it compatible in browsers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published