From 89e17987a5463f82aaf5c92ca7527131588750a3 Mon Sep 17 00:00:00 2001 From: Killer069 <65385476+killer069@users.noreply.github.com> Date: Fri, 24 Sep 2021 16:02:03 +0530 Subject: [PATCH] Update README.md --- docs/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/README.md b/docs/README.md index baceb8e..ca19ceb 100644 --- a/docs/README.md +++ b/docs/README.md @@ -59,9 +59,11 @@ authorization() //After then you will be asked about type of data you want to cr _This is basic to search with any source._ -**NOTE :-** If no options.source is not specified, then it will default to youtube video search. +**NOTE :-** If options.source is not specified, then it will default to youtube video search. ```js +let data = await search('Rick Roll', { limit : 1 }) // Searches for youtube video + let data = await search('Rick Roll', { limit : 1, source { youtube : "video" } }) // Searches for youtube video let data = await search('Rick Roll', { limit: 1, source { soundcloud : "track" } }) // Searches for spotify track.