js-youtube-id-parser
v1.0.1
Published
The easiest way to get YouTube url address with Javascript.
Downloads
4
Maintainers
Keywords
Readme
Js-YouTube-Id-Parser
The easiest way to get YouTube url address with Javascript.
Installation
Use the package manager npm to install js-youtube-id-parser.
npm install js-youtube-id-parser@latest
Import Package
import { parseYouTubeURL } from "js-youtube-id-parser";
Usage
const youtubeURL = "https://www.youtube.com/watch?v=dQw4w9WgXcQ";
const videoID = parseYouTubeURL(youtubeURL);
if (videoID) {
console.log("Extracted video ID:", videoID);
} else {
console.log("Invalid YouTube URL format.");
}
Support Me
This software is developed during my free time and I will be glad if somebody will support me.
Everyone's time should be valuable, so please consider donating.