@joshyzou/getyoutubelinks
v1.1.9
Published
Searches youtube for the best video that matches your string, and returns the link and title of that video
Downloads
2
Maintainers
Readme
Youtube Searcher
You can use this to get Youtube Links and Youtube Video Titles.
Usage
var getyoutubelinks = require("@joshyzou/getyoutubelinks");
test();
async function test(){
let video = await getyoutubelinks("what is npm");
console.log(video.title);
console.log(video.link);
}
//returns "What is npm? In 2 minutes - npm tutorial for beginners"
//returns "https://youtube.com/watch?v=ZNbFagCBlwo"
//at least at the time of writing