Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

get-youtube-playlist-id

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-youtube-playlist-id

Get Youtube playlist ID from Youtube's URL

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

Get Youtube Playlist Id

Get Youtube playlist ID from Youtube's URL

Install

npm install get-youtube-playlist-id

Usage

parameters

FieldDescription
urlRequiredYoutube's URL
const getYotubePlaylistId = require('get-youtube-playlist-id')

var url = 'https://www.youtube.com/watch?v=4cZuzD9LTRY&list=PLpjK416fmKwQeaR-02rel8JGZZp2T8VFO'
var id = getYotubePlaylistId(url)

if (id !== flase) {
  console.log(`Playlist ID: ${id}`)  
} else {
  console.log('Invalid youtube playlist URL')
}

License

MIT

Keywords

youtube

FAQs

Package last updated on 04 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts