Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH 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
The npm package documenthub-web-components receives a total of 3 weekly downloads. As such, documenthub-web-components popularity was classified as not popular.
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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.