0.0.4 • Published 5 years ago

resolve-oembed v0.0.4

Weekly downloads
1
License
MIT
Repository
-
Last release
5 years ago

resolve-oembed

Usage

async module for resolving oembed data for URLs

const oembed = require('resolve-oembed')

async function run() {
  await oembed('https://www.instagram.com/p/BwwSWVxgZ8z/').then(console.log)
  // Adding parameters
  await oembed('https://www.instagram.com/p/BwwSWVxgZ8z/', { maxwidth: 480 }).then(console.log)
  // non-oembed URLs resolve to null
  await oembed('https://sanity.io').then(console.log) // => null
}

run()

Providers

This module uses a local copy of the list of providers at https://oembed.com/providers.json

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago