efficient-office

中文文档
0.5.0发布于 2026/11/03UNLICENSEDTypeScriptES Module零依赖

Efficient Office: the EFFICIENT office apps, on efficient-shell and efficient-easel.

原始使用文档

efficient-office

The EFFICIENT office apps, on efficient-shell and efficient-easel.

import { slidesApps, SlidesProvider } from 'efficient-office/slides';
import 'efficient-office/slides.css';

Load efficient-shell's CSS first. pptxgenjs is an optional peer, needed only for PowerPoint export. Without a SlidesProvider, decks stay in the browser.

Documents and Spreadsheet

import { documentsApp, DocumentsWordsProvider } from 'efficient-office/documents';
import { spreadsheetApp, SpreadsheetWordsProvider } from 'efficient-office/spreadsheet';
import 'efficient-office/documents.css';

These two draw with Tailwind classes, so a host's stylesheet must scan this package, beside its line for efficient-shell:

@source "../node_modules/efficient-office/dist/**/*.js";

They speak English until a host mounts the words provider with another language (ZH_HANS_WORDS, or its own). xlsx is an optional peer, needed only to read .xls and .ods. setSpreadsheetPreview stays in efficient-shell/apps.

版本与发布记录

efficient-office 共发布 7 个版本,首次发布于 2026/11/01;过去 12 个月发布了 7 个版本。

版本发布日期距今
0.5.0latest2026/11/03今天
0.4.02026/11/021 天前
0.3.02026/11/021 天前
0.2.12026/11/012 天前
0.2.02026/11/012 天前
0.0.02026/11/012 天前

关于 efficient-office 的常见问题

efficient-office 是什么?

高效办公:高效办公应用程序,在高效的外壳和高效的画架。

如何安装 efficient-office?

在项目目录运行 npm install efficient-office,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(>=19)、react-dom(>=19)、efficient-easel(^26.8.0)、efficient-shell(^11.12.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

efficient-office 支持 TypeScript 吗?

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

efficient-office 支持 ESM 还是 CommonJS?

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

efficient-office 可以商用吗?

efficient-office 使用 UNLICENSED 许可。作者声明为 UNLICENSED,即不授予公开使用许可(与公共领域的 Unlicense 不同)。使用前需获得作者授权。以上为概括,不构成法律意见,请以许可原文为准。

efficient-office 还在维护吗?

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