
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
contenthub-js
Advanced tools
A Javascript Plugin for dynamic content via the Content Hub platform without dependencies.
Example on the foosball tracking app KickTrack:
Download the contenthub.min.js and contenthub.min.css or simply install via bower writing bower install contenthub-js
or via npm writing npm install contenthub-js
.
For suggestions to work you have two parts. First, the unibox.min.js and unibox.min.css need to be included and configured on the page. Second, the server needs to give search suggest data for the plugin to show.
<!-- Optional: Get the default stylesheet. -->
<link href="https://contenthub.cloud/cdn/contenthub.min.css" rel="stylesheet">
<!-- Create a section where you want your document stream to appear with id='ch-docs'. -->
<div id="ch-docs" style="width:600px">
<!-- Create a template of how one entry should look. #key# will be replaced by the value of the field in the document with the key. -->
<div class="ch-document">
<h4>#title#</h4>
<p>#description#</p>
<div class="ch-document__date">#publishdate#</div>
</div>
</div>
<!-- Load the module. -->
<script src="https://contenthub.cloud/cdn/contenthub.min.js" type="module"></script>
<!-- Configure and initialize the module. -->
<script type="module">
import ContentHub from 'https://contenthub.cloud/cdn/contenthub.min.js';
var chConfig = {
apiKey: 'YOUR-PUBLIC-CONTENT-HUB-API-KEY',
// optional: dateOptions for any fields that are dates and should be formatted
dateOptions: { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' },
projectId: 'YOUR-CONTENT-HUB-PROJECT-ID',
stream: {
// the id of the document stream container
rootId: 'ch-docs',
// the number of documents to load initially
number: 3
}
}
// initialize on current page
ContentHub.init(chConfig);
</script>
FAQs
Content Hub widgets.
The npm package contenthub-js receives a total of 2 weekly downloads. As such, contenthub-js popularity was classified as not popular.
We found that contenthub-js 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
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.