
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@pantheon-systems/pcc-browser-sdk
Advanced tools
A simple and easy to use browser client for the Pantheon Content Cloud API
<-- Add this to the <head> of your HTML file or right before the closing </body> tag -->
<script
src="https://unpkg.com/@pantheon-systems/pcc-browser-sdk@latest/dist/index.js"
data-site-id="<your PCC Site ID>"
data-token="<your PCC Token>"
></script>
pcc-article custom element to your HTML file. Place it where you want
the article to be rendered.<pcc-article id="<id of your article>">
<!-- Add a fallback message here for when the article is loading... -->
Loading...
</pcc-article>
That's it! You should now see yur article rendered in your browser.
The pcc-article custom element accepts the following attributes:
| Attribute | Type | Required | Description |
|---|---|---|---|
| id | String | Yes | The ID of the article you want to render |
| slug | String | Yes if id is not provided | The slug of the article you want to render |
| disable-styles | Boolean | No | Disable rendering default styles for the article |
FAQs
Pantheon Content Publisher Browser SDK
The npm package @pantheon-systems/pcc-browser-sdk receives a total of 111 weekly downloads. As such, @pantheon-systems/pcc-browser-sdk popularity was classified as not popular.
We found that @pantheon-systems/pcc-browser-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers 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
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.