New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

x-postpress

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

x-postpress

x-postpress ======


Version published
Weekly downloads
5
decreased by-37.5%
Maintainers
1
Weekly downloads
 
Created

x-postpress

About

  • x-postpress is a collection of Web Components using lit-html and LitElement

  • Fetches WordPress posts from the REST API based on attributes set on the element, or parameters in the query string

  • Built to support Internet Explorer 11

Usage

  • Test the provided element
  • Using the browser's devtools, change the apiUrl attribute within the x-postpress tag to render another REST API endpoint:
    <x-postpress
      apiUrl="https://content.example.com/wp-json/wp/v2/posts"
      siteUrl="https://example.com/"
    ></x-postpress>
    
  • Alternatively, override parameters by including them in the query string (example):
    <a href="https://kherrick.github.io/x-postpress/?apiUrl=https://another.content.example.com/wp-json/wp/v2/posts&siteUrl=https://another.example.com">another.example.com</a>
    

FAQs

Package last updated on 27 Dec 2018

Did you know?

Socket

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.

Install

Related posts