1.0.3 • Published 3 years ago
ytsr.js v1.0.3
Table of contents
About
ytsr.js is an easy to use node.js module that gets YouTube search results quickly. It doesn't require any API keys to use!
Installation
npm install ytsr.js
Usage
The normal way:
const search = require('ytsr.js');
(async query => {
const res = await search(query);
console.log(res);
})("Kids by Current Joys");
You can also search by type, like video or playlist.
Video example:
const search = require('ytsr.js');
(async query => {
const res = await search(query, { type: "video" });
console.log(res);
})("Playlist");
Playlist example:
const search = require('ytsr.js');
(async query => {
const res = await search(query, { type: "playlist" });
console.log(res);
})("Playlist");