Skip to content

fyhring/oembed-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oembed-parser

oembed-parser

NPM Build Status codecov Dependency Status NSP Status

Installation

npm install oembed-parser

Usage

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);
});

APIs

.extract(String URL)

Return a Promise object.

.hasProvider(String URL)

Return boolean. True if the URL matches with any provider in the list.

Provider list

List of resource providers is a clone of oembed.com and available here.

Test

git clone https://github.com/ndaidong/oembed-parser.git
cd oembed-parser
npm install
npm test

License

The MIT License (MIT)

About

oembed-parser

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%