Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
x-postpress
Advanced tools
A Web Component that fetches [WordPress](https://wordpress.org/) posts [from the REST API](https://developer.wordpress.org/rest-api/reference/posts/#list-posts) based on attributes set on the element.
A Web Component that fetches WordPress posts from the REST API based on attributes set on the element.
Add the Web Component to the project (unpkg and npm examples)
Load the custom element using a script
tag:
<script
src="https://unpkg.com/x-postpress"
type="module"
>
</script>
Alternatively, add using npm
:
npm i x-postpress
Then import the module from another file:
import 'x-postpress'
Add the tag into the document and style using available CSS custom properties. Articles can be included with the provided slot element:
<style>
ul {
list-style-type: var(--ul-list-style-type, inherit);
}
x-postpress {
--ul-list-style-type: none;
}
</style>
<x-postpress
apiHost="https://content.example.com"
per_page="1"
>
<div slot="articles">
<article>
<h1><a href="https://example.com/1970/01/01/slotted/">
Article
</a></h1>
<h2>Thursday, 01 January 1970</h2>
<p>Lorem ipsum dolor sit amet</p>
<hr>
</article>
</div>
</x-postpress>
apiHost
attribute within the x-postpress
tag to render another REST API posts endpoint<a
href="http://localhost:8081/?apiHost=https://content.example.com"
>
example.com
</a>
FAQs
A Web Component used to render articles.
The npm package x-postpress receives a total of 14 weekly downloads. As such, x-postpress popularity was classified as not popular.
We found that x-postpress 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
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.