UNPKG

@joshyzou/getyoutubelinks

Version:

Searches youtube for the best video that matches your string, and returns the link and title of that video

20 lines (13 loc) 514 B
# 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