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
Less is more. Now with DocumentHub Web Components you can use customizable UI features right in your Application.
From the terminal run npm i documenthub-web-components
in the root of your application.
Import module via import { Article, ... } from "documenthub-web-components";
where you want the component to be used.
<Article
catalogid="your-catalog-id",
documentid="document-id",
language="en" ,
headings="false", //optional
scrollUp="true", //optional
token="aaa.bbb.ccc"
/>
Create a custom HTML tag which will be automatically handled by the module.
<documenthub-article
catalogid="your-catalog-id"
documentid="document-id"
language="en"
headings="false"
scrollUp="true"
token="aaa.bbb.ccc"
></documenthub-article>
This approach can be used in a React Application but also in plane old webpage. For that you will need to include the resources in your page via:
https://unpkg.com/documenthub-web-components@:version/dist/lib/index.css
https://unpkg.com/documenthub-web-components@:version/dist/lib/index.js
Replace :version with the latest one
Or one of older versions:
<!DOCTYPE html>
<html lang="en">
<head>
<meta
name="description"
content="component based app"
/>
<link rel="stylesheet" href="https://unpkg.com/documenthub-web-components@latest/dist/lib/index.css">
<script defer src="https://unpkg.com/documenthub-web-components@latest/dist/lib/index.js"></script>
<title>Your application</title>
</head>
<body>
<!-- //article instance -->
<documenthub-article
catalogid="your-catalog-id"
documentid="document-id"
language="en"
headings="false"
scrollUp="true"
token="aaa.bbb.ccc"
></documenthub-article>
<!-- //document instance -->
<documenthub-document
catalogid="your-catalog-id"
documentid="document-id"
language="en"
headings="false"
scrollUp="true"
token="aaa.bbb.ccc"
></documenthub-document>
<!-- //quiz instance -->
<documenthub-quiz
catalogid="your-catalog-id"
documentid="document-id"
quiz="quiz"
resultscatalogid="your-catalog-id""
language="en"
token="aaa.bbb.ccc"
></documenthub-quiz>
<!-- //form instance -->
<documenthub-form
catalogid="your-catalog-id"
documentid="document-id"
language="en"
token="aaa.bbb.ccc"
></documenthub-form>
</body>
</html>
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.