is-playlist
Check if an URL is a YouTube playlist
Last updated 3 years ago by itaisteinherz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install is-playlist 
SYNC missed versions from official npm registry.

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

Current Tags

  • 1.0.0                                ...           latest (3 years ago)

1 Versions

  • 1.0.0                                ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 2
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (2)
Dependents (2)

Copyright 2014 - 2017 © taobao.org |