oembed-parser
npm install oembed-parser
var {extract} = require('oembed-parser');
let url = 'https://www.youtube.com/watch?v=8jPQjjsBbIc';
extract(url).then((data) => {
console.log(data);
}).catch((err) => {
console.log(err);
});
Return a Promise object.
Return boolean. True if the URL matches with any provider in the list.
List of resource providers is a clone of oembed.com and available here.
git clone https://github.com/ndaidong/oembed-parser.git
cd oembed-parser
npm install
npm test
The MIT License (MIT)