mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-31 14:58:05 +00:00
12
README.md
12
README.md
@@ -33,12 +33,24 @@ const results = await youtube.search('post malone sunflower', options);
|
||||
```
|
||||
|
||||
# Validate
|
||||
|
||||
### validate( url : `string` )
|
||||
*Much faster and easier way to validate url.*
|
||||
```js
|
||||
if(validate(url)) // Will return true if url is a YouTube url
|
||||
```
|
||||
|
||||
### validate_playlist( url : `string` )
|
||||
*Much faster and easier way to validate url.*
|
||||
```js
|
||||
if(validate_playlist(url)) // Will return true if url is a YouTube Playlist url
|
||||
```
|
||||
|
||||
> Want to Check both, use this
|
||||
```js
|
||||
if(validate(url) || validate_playlist(url)) // This will check both and if anyone is true, it will execute the below function
|
||||
```
|
||||
|
||||
# Stream
|
||||
|
||||
### stream(url : `string`)
|
||||
|
||||
Reference in New Issue
Block a user