video-source-url

0.1.0 • Public • Published

Video Source URL Build Status

Get video source from Youtube or Vimeo URL.

video-source-url

Install

$ npm install video-source-url --save-dev

Usage

For now, Youtube and Vimeo urls are supported.

var videoSourceUrl = require('video-source-url');
videoSourceUrl.src('https://www.youtube.com/watch?v=3cvmONlV5WU');
//  {
//    id: '3cvmONlV5WU',
//    type: 'youtube',
//    src: 'https://www.youtube.com/embed/3cvmONlV5WU'
//  }

Contributions

Pull requests and issues are be welcome.

License

MIT license

© 2015 José Luis Quintana

Package Sidebar

Install

npm i video-source-url

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • joseluisq