iamcal / oembed

The oEmbed Spec
http://oembed.com
MIT License
1.32k stars 651 forks source link

build providers.json with JS #535

Closed zemlanin closed 3 years ago

zemlanin commented 3 years ago

this will allow to install the package from github (via npm install iamcal/oembed), in addition to (infrequently updated) npm

iamcal commented 3 years ago

why would you want to install the package? (genuinely curious!)

zemlanin commented 3 years ago

I have a custom made blog engine/generator, which, among other things, renders preview "cards" based opengraph and oembed data. When the previewed url doesn't have related <meta> tags, I'm using this package as a fallback

List of providers in this repo is updated quite often, unlike the npm package. While choosing between these options:

I choose the last one, as a combination of "not too hard", "not too manual", and "not too bothersome for the maintainers"

iamcal commented 3 years ago

thank you for the explanation - makes a lot of sense.

i've merged your changes and updated the README to explain how to use the repo as an NPM package