0.0.7 • Published 2 years ago

ytdl-client v0.0.7

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

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.

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago