New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

oembed-parser

Package Overview
Dependencies
Maintainers
1
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oembed-parser

Get oEmbed data from given URL.

  • 1.0.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
679
decreased by-76.74%
Maintainers
1
Weekly downloads
 
Created
Source

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)

Keywords

FAQs

Package last updated on 07 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc