@file-viewer/eda-orcad

中文文档
3.3.3发布于 2026/10/31Apache-2.0TypeScriptES Module零依赖构建来源已验证近 30 天下载 3.5万

Pure TypeScript OrCAD and Allegro binary inspection helpers for File Viewer with CFB detection and safe string extraction.

原始使用文档

@file-viewer/eda-orcad

English · 简体中文

Flyfish File Viewer 的独立 OrCAD / Allegro 二进制检查内核包。它提供 CFB/OLE2 检测、安全文本采样、十六进制预览和字符串抽取等底层能力,不包含 UI。

import {
  isOrcadCompoundFile,
  collectOrcadStrings,
  decodeOrcadSample,
} from '@file-viewer/eda-orcad'

const bytes = new Uint8Array(buffer)
const isCfb = isOrcadCompoundFile(bytes)
const strings = collectOrcadStrings([bytes])
const sample = decodeOrcadSample(bytes)

定位

  • 当前用于 .olb、.dra、.psm、.pad 等 OrCAD / Allegro 私有二进制文件的结构索引和安全退化预览。
  • 不依赖 UI 框架,不依赖 DOM,可独立发布、独立回归。
  • 完整符号/封装几何解析会继续沿 OpenOrCadParser / OpenAllegroParser 的 C++ WASM 或 TypeScript 分阶段移植路线推进。

为什么单独拆包

OrCAD / Allegro 文件格式公开资料有限,强行把 parser 混进 UI renderer 会让后续维护越来越难。本包把二进制检查和后续 WASM 内核边界固定下来,@file-viewer/renderer-eda 只负责展示。

版本与发布记录

@file-viewer/eda-orcad 共发布 57 个版本,首次发布于 2026/06/23;过去 12 个月发布了 57 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
3.3.3latest2026/10/3114 天前
3.3.12026/10/3015 天前
3.3.02026/10/2718 天前
3.2.22026/10/1827 天前
3.2.12026/10/1530 天前
3.2.02026/10/1530 天前

关于 @file-viewer/eda-orcad 的常见问题

@file-viewer/eda-orcad 是什么?

Pure TypeScript OrCAD and Allegro binary inspection helpers for File Viewer with CFB detection and safe string extraction.

如何安装 @file-viewer/eda-orcad?

在项目目录运行 npm install @file-viewer/eda-orcad,或使用 pnpm add / yarn add / bun add。

@file-viewer/eda-orcad 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@file-viewer/eda-orcad 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@file-viewer/eda-orcad 可以商用吗?

@file-viewer/eda-orcad 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@file-viewer/eda-orcad 的下载量有多少?

根据 npm 官方下载统计,@file-viewer/eda-orcad 在 2026/10/15 – 2026/11/13 这 30 天内被下载 34,508 次,日均约 1,150 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@file-viewer/eda-orcad 还在维护吗?

最新版本 3.3.3 发布于 2026/10/31(14 天前);至今共发布 57 个版本,其中过去 12 个月发布了 57 个;首次发布于 2026/06/23。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。