ip

is-playlist

Check if an URL is a YouTube playlist

Showing:

Popularity

Downloads/wk

3

GitHub Stars

2

Maintenance

Last Commit

2yrs ago

Contributors

0

Package

Dependencies

2

Size (min+gzip)

4.2KB

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

is-playlist Build Status

Check if an URL is a YouTube playlist

Install

$ npm install is-playlist

Usage

const isPlaylist = require("is-playlist");

isPlaylist("https://www.youtube.com/playlist?list=PLFgquLnL59alCl_2TQvOiD5Vgm1hCaGSI");
//=> true

isPlaylist("https://youtu.be/BCQHnlnPusY?list=PLRqwX-V7Uu6ZF9C0YMKuns9sLDzK6zoiV");
//=> true

isPlaylist("https://youtu.be/dQw4w9WgXcQ");
//=> false

isPlaylist("https://vimeo.com/channels/staffpicks/229370456");
//=> false

API

isPlaylist(url)

url

Type: string

URL to check.

License

MIT © Itai Steinherz

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100