
Research
/Security News
16 Malicious Firefox Extensions Steal Cryptocurrency Wallet Credentials
Socket found 16 malicious Firefox extensions designed to steal crypto wallet recovery phrases and private keys using cloned Rabby and OKX interfaces.
@file-viewer/renderer-word
Advanced tools
Standalone Word and compatible document renderer plugin for File Viewer powered by @file-viewer/docx, @file-viewer/doc, and RTF/ODF parsing.
Flyfish File Viewer 的独立 Word / 兼容文档 renderer 包。它承接 DOCX/DOCM/DOTX/DOTM、旧版 DOC/DOT、RTF、ODT/ODP 等文档预览链路,让 @file-viewer/core 不再直接安装 Word 解析与渲染依赖。
import FileViewer from '@file-viewer/vue3'
import { wordRenderer } from '@file-viewer/renderer-word'
const options = {
rendererMode: 'replace',
renderers: wordRenderer,
}
也可以和其他 renderer 一起组合:
import { wordRenderer } from '@file-viewer/renderer-word'
import { pdfRenderer } from '@file-viewer/renderer-pdf'
import { presentationRenderer } from '@file-viewer/renderer-presentation'
const options = {
rendererMode: 'replace',
renderers: [wordRenderer, pdfRenderer, presentationRenderer],
}
官方 Demo 和完整格式矩阵可以直接使用 @file-viewer/preset-all。
@file-viewer/docx,默认 Worker 解析、连续流式阅读、目录字段缓存、异步分批渲染,并跟随 viewer 主题启用暗黑文档面。@file-viewer/doc,并套用 Word 风格纸张阅读面、缩放、打印和 HTML 导出适配。rtf.js,ODT / ODP 读取 OpenDocument 包内 content.xml 做安全结构预览。DOCX Worker 默认读取 viewer assets 下的:
vendor/docx/docx.worker.jsvendor/docx/jszip.min.js私有化部署时可以通过 options.docx.workerUrl 和 options.docx.workerJsZipUrl 覆盖:
const options = {
docx: {
workerUrl: '/file-viewer/vendor/docx/docx.worker.js',
workerJsZipUrl: '/file-viewer/vendor/docx/jszip.min.js',
},
}
DOCX 暗黑渲染默认由 options.theme 决定:dark 开启、light 关闭、system 跟随浏览器系统主题。需要业务固定效果时可传 options.docx.darkMode: true / false。
@file-viewer/core 已不再直接依赖 @file-viewer/docx、@file-viewer/doc、rtf.js、linkedom 或 @xmldom/xmldom。需要 Word 完整预览时,请安装本包并通过 renderers 传入,或使用 @file-viewer/preset-all。
FAQs
Standalone DOCX, DOC, and OpenDocument renderer for File Viewer; RTF parsing is an explicit opt-in capability.
The npm package @file-viewer/renderer-word receives a total of 9,271 weekly downloads. As such, @file-viewer/renderer-word popularity was classified as popular.
We found that @file-viewer/renderer-word demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Research
/Security News
Socket found 16 malicious Firefox extensions designed to steal crypto wallet recovery phrases and private keys using cloned Rabby and OKX interfaces.

Product
Socket now scans VS Code extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Research
/Security News
Socket uncovered two malicious VS Code themes in a GlassWorm-linked cluster with thousands of installs across VS Code Marketplace and Open VSX.