get-youtube-id
Parse a youtube url returning the video ID.
Installation
npm install get-youtube-id
Example
var getYouTubeID = ;var id = ;console; // "9bZkp7q19f0"// Or, if you're using ES6 syntax:;
Fuzzy matching
By default getYouTubeID
will make a last-ditch effort to look for anything that resembles
an 11-character id. If you want it to be more strict you can turn this off with an options
argument.
var getYouTubeID = ; var id = ;console; // null
License
MIT