
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
html2pdf-dbs
Advanced tools
Convert HTML to PDF.
npm i html2pdf-dbs -S
<script lang="ts" setup>
import { htmlToPdf } from "html2pdf-dbs";
</script>
<el-button @click="htmlToPdf('elementId', 'fileNme', {isSetWatermark: true, userName: '张三'})" type="primary">
下载
</el-button>
| Name | Type | Default | Description |
|---|---|---|---|
| elementId | String | "" | 需要转换的html父元素ID |
| fileNme | String | "" | 下载到本地的文件名称 |
| isSetWatermark | Boolean | false | 下载到本地的文件是否加水印 |
| userName | String | 获取localStorage下userInfo.name | 水印文案(userName yyyy-MM-dd) |
FAQs
html2pdf
We found that html2pdf-dbs 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.