Make an oEmbed request with a content url
Just request with a single content url and you will get a proper oEmbed response
$ npm install oembed-auto
var oembed = ;;
oembed = require "oembed-auto"oembed ""consolelog data
thumbnail_width: 480height: 270author_url: ''title: 'PSY - GANGNAM STYLE (강남스타일) M/V'author_name: 'officialpsy'html: '<iframe width="480" height="270" src="" frameborder="0" allowfullscreen></iframe>'provider_name: 'YouTube'version: '1.0'thumbnail_height: 360type: 'video'width: 480thumbnail_url: ''provider_url: ''
How to Contribute
More oEmbed request rules are welcomed :)
- Firstly, you should
npm install -dafter cloning this repo.
- Add more rules in
make compileand pull-request your version
(The MIT License)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.