youtube-video-id-fetcher

0.0.3 • Public • Published

Youtube Video ID Fetcher

Build Status Dependency status Coverage Status

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

  1. Install Dependencies yarn install
  2. 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
  1. find
  2. xargs
  3. 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

/youtube-video-id-fetcher/

    Package Sidebar

    Install

    npm i youtube-video-id-fetcher

    Weekly Downloads

    1

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    213 kB

    Total Files

    22

    Last publish

    Collaborators

    • aajiwani