![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@layflags/parcel-plugin-metaimage
Advanced tools
Set absolute url for og:image and twitter:image meta tags.
Set absolute URL for all og:image and twitter:image meta tags.
This plugin is based on Luke Childs, nothingrandom and Eliepse code.
Sets absolute URLs for all og:image
and twitter:image
meta tags. This is required by the spec and relative URLs will not work on some sites such as Facebook or Twitter.
You can fix this directly in parcel by using --public-url https://example.com
, however now all your URLs are hardcoded to absolute URLs which may be undesirable and can break things like prerendering.
This plugin uses the value of the og:url
(or non-standard origin
) meta tag to convert og:image
to an absolute URL.
npm install @layflags/parcel-plugin-metaimage
Just install this package as a development dependency. Parcel will automatically call it when building your application.
You must have both og:image
and og:url
(or origin
) meta tags:
<meta name="twitter:image" content="card.png">
<meta property="og:image" content="card.png">
<meta property="og:url" content="https://example.com">
Parcel will generate that into something like this:
<meta name="twitter:image" content="/card.9190ce93.png">
<meta property="og:image" content="/card.9190ce93.png">
<meta property="og:url" content="https://example.com">
@layflags/parcel-plugin-metaimage
will then update the og:image
and twitter:image
with an absolute URL:
<meta name="twitter:image" content="https://example.com/card.9190ce93.png">
<meta property="og:image" content="https://example.com/card.9190ce93.png">
<meta property="og:url" content="https://example.com">
MIT @ layflags
From Luke Childs and nothingrandom and Eliepse code
FAQs
Set absolute url for og:image and twitter:image meta tags.
The npm package @layflags/parcel-plugin-metaimage receives a total of 2 weekly downloads. As such, @layflags/parcel-plugin-metaimage popularity was classified as not popular.
We found that @layflags/parcel-plugin-metaimage demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.