
Research
Security News
Lazarus Strikes npm Again with New Wave of Malicious Packages
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
documenthub-web-components
Advanced tools
With DocumentHub Web Components you can use in your Application a set of customizable lightning fast UI features.
You can simply use documenthub-web-components
inside your React application by installing its module via npm i documenthub-web-components
.
Import a module via import { Article, Document, Form, Page, Quiz } from "documenthub-web-components";
Display a document as an article.
<Article
catalogid="your-catalog-id",
documentid="document-id",
language="en" , //optional
headings="false", //optional
toc="false", //optional
scrollUp="true", //optional
token="aaa.bbb.ccc" //optional
/>
Display a document.
<Document
catalogid=""your-catalog-id",
documentid="document-id",
language="en" , //optional
headings="false", //optional
toc="true" //optional
token="aaa.bbb.ccc" //optional
/>
Use form component to be able to edit a document via form fields.
<Form
catalogid=""your-catalog-id",
documentid="document-id",
language="en" , //optional
/>
Display content as a page.
<Form
catalogid=""your-catalog-id",
documentid="document-id",
language="en" , //optional
/>
e.g
"sections": [
"A": {
"title": "",
"body": "",
"randomQuestions": true,
"numberOfQuestions": 5,
"passingPercent": 80
}
],
"questions": [
{
"id": "q1",
"section": "A,"
"question": "What does <em>HTML</em> stand for?",
"body": "",
"answers": [
...
{
"catalogId": "",
"documentId": "",
"quiz": "",
"libraryId": "",
"userId": "",
"startTime": "",
"restartTimes": [],
"finishTime": "",
"passingScore": 80,
"score": 0,
"scorePerSection": [
0,
0,
0
],
"sections": {
"A": {
"title": "",
"body": "",
"passingScore": 80
}
},
"questions": [
{
"id": "q1",
"section": "A",
"question": "What does <em>HTML</em> stand for?",
"body": "",
"answers": [
{
"id": "1",
"answer": "Hyperlinks and Text Markup Language",
"valid": false
}
]
}
],
"responses": {
"q1": [
"a1"
],
"q2": [
"a3",
"a4"
],
"q3": [],
"q5": []
}
}
{
"catalog": "",
"document": "",
"language": "",
"library": "",
"user": "",
"numberOfModules": 10,
"progress": ["01.01", "01.02"],
"checkpoints": ?
}
You can simply use DocumentHub Web Components inside your page by including a js and a css file.
Import the js module via
<script
type="module"
src='https://unpkg.com/documenthub-web-components@latest/dist/lib/index.js'>
</script>
Import the css module via
<link rel="stylesheet" href="https://unpkg.com/documenthub-web-components@latest/dist/lib/index.css">
<documenthub-article
catalogid="catalog-id"
documentid="document-id"
language="en" //optional
headings="false" //optional
token="aaa.bbb.ccc"
></documenthub-article>
<documenthub-document
catalogid="catalog-id"
documentid="document-id"
language="en" //optional
headings="false" //optional
token="aaa.bbb.ccc"
></documenthub-document>
<documenthub-form
catalogid="catalog-id"
documentid="document-id"
language="en" //optional
token="aaa.bbb.ccc"
></documenthub-form>
<documenthub-page
catalogid="catalog-id"
documentid="document-id"
headings="false" //optional
token="aaa.bbb.ccc"g"
></documenthub-page>
FAQs
DocumentHub Web Components
We found that documenthub-web-components 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.
Research
Security News
The Socket Research Team has discovered six new malicious npm packages linked to North Korea’s Lazarus Group, designed to steal credentials and deploy backdoors.
Security News
Socket CEO Feross Aboukhadijeh discusses the open web, open source security, and how Socket tackles software supply chain attacks on The Pair Program podcast.
Security News
Opengrep continues building momentum with the alpha release of its Playground tool, demonstrating the project's rapid evolution just two months after its initial launch.