0.1.0 • Published 8 years ago

video-source-url v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

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