Closed artemjackson closed 7 years ago
Yeah I see what you mean, provider isn't supposed to be a URL like thing, it's supposed to be something more like a company name or institution name. I think you can get what you want just by parsing the URL object itself, something like:
const urllib = require('url');
const url = 'https://schema.org';
console.log(urllib.parse(url).host);
-> 'schema.org'
For sites that don't provide
og:site_name
(like schema.org) I'd like to see schema.org instead of just schema.How could I achieve this?
A little example of what I'm trying to do: