
Research
NPM targeted by malware campaign mimicking familiar library names
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
vue-doc-viewers-plus
Advanced tools
A Vue 3 component for viewing various document types including PDF, Office documents and images
一个基于 Vue 3 的文档预览组件,支持 PDF、Office 文档和图片预览。
npm install vue-doc-viewers-plus
import { DocViewerPlus } from 'vue-doc-viewers-plus'
import 'vue-doc-viewers-plus/dist/style.css'
<template>
<doc-viewer-plus
:file-url="fileUrl"
:file-name="fileName"
v-model:visible="visible"
/>
</template>
<script setup>
import { ref } from 'vue'
import { DocViewerPlus } from 'vue-doc-viewers-plus'
import 'vue-doc-viewers-plus/dist/style.css'
const fileUrl = ref('')
const fileName = ref('')
const visible = ref(false)
// 打开预览
const preview = () => {
fileUrl.value = 'https://example.com/sample.pdf'
fileName.value = 'sample.pdf'
visible.value = true
}
</script>
属性名 | 类型 | 必填 | 默认值 | 说明 |
---|---|---|---|---|
fileUrl | string | 是 | - | 文件的 URL 地址 |
fileName | string | 否 | - | 文件名(用于下载时的文件名) |
visible | boolean | 否 | false | 控制预览窗口的显示/隐藏 |
vue-doc-viewers-plus/dist/style.css
MIT
FAQs
A Vue 3 component for viewing various document types including PDF, Office documents and images
The npm package vue-doc-viewers-plus receives a total of 8 weekly downloads. As such, vue-doc-viewers-plus popularity was classified as not popular.
We found that vue-doc-viewers-plus demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Socket uncovered npm malware campaign mimicking popular Node.js libraries and packages from other ecosystems; packages steal data and execute remote code.
Research
Socket's research uncovers three dangerous Go modules that contain obfuscated disk-wiping malware, threatening complete data loss.
Research
Socket uncovers malicious packages on PyPI using Gmail's SMTP protocol for command and control (C2) to exfiltrate data and execute commands.