is-playlist

1.0.0 • Public • Published

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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.06latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.06

Package Sidebar

Install

npm i is-playlist

Weekly Downloads

6

Version

1.0.0

License

MIT

Last publish

Collaborators

  • itaisteinherz