0.0.1 • Published 3 years ago
ytrm v0.0.1
ytrm
Get videoId of recommmened video of an video.
How to install
npm install ytrm --save
How to use
const ytrm = require('ytrm');
const res = await ytrm('WAxxfzdcNdA');
console.log(res.sourceId);
// return passed videoId as string: WAxxfzdcNdA
console.log(res.first);
// return an object {videoId: "some-id"} for the first recommended video
console.log(res.others);
// return array<{videoId: "some-id"}> for other recommended videos show in https://www.youtube.com/watch?v=
0.0.1
3 years ago