1.0.3 • Published 3 years ago

ytsr.js v1.0.3

Weekly downloads
13
License
ISC
Repository
github
Last release
3 years ago

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");
1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago