youtube-video-id-fetcher
v0.0.3
Published
A small module to fetch the youtube id, given any url to take into consideration
Downloads
1
Maintainers
Readme
Youtube Video ID Fetcher
This package can get the Youtube video ID from youtube URL directly, or from the redirected Youtube URL
Running Guide
Please install and configure npm
and yarn
before proceeding
- Install Dependencies
yarn install
- Run Tests
yarn test
- After running tests, an interactive report could be found under coverage/index.html
Dependencies
- Some of the scripts in package.json relies upon system commands listed below
find
xargs
cd
Test Cases
- Please check the test cases for the covered URLs
Basic Usage
import { fetchYoutubeId } from "youtube-video-id-fetcher";
fetchYoutubeId(
"http://y2u.be/j4dMnAPZu70"
).then(youtubeId => console.log(youtubeId));
// This will print out j4dMnAPZu70