@datalens-tech/xlsx

中文文档
0.20.3发布于 2024/08/09Apache-2.0TypeScriptESM + CJS零依赖构建来源已验证近 30 天下载 1.5万

SheetJS Spreadsheet data parser and writer

原始使用文档
文档目录3 节
  1. Documentation
  2. Constellation
  3. License

SheetJS

Since the authors of the original package left GitHub and npm that makes most of the community unable to access their package without vulnerabilities, https://github.com/e965 decided to make this project. It automatically takes a fresh version of SheetJS from their git repository, and publishes to npm if the version is different. The whole process is automated and works through Github Actions.

Why fork?
We created fork of original repository, because we want to control integrity of published libraries.

The SheetJS Community Edition offers battle-tested open-source solutions for extracting useful data from almost any complex spreadsheet and generating new spreadsheets that will work with legacy and modern software alike.

SheetJS Pro offers solutions beyond data processing: Edit complex templates with ease; let out your inner Picasso with styling; make custom sheets with images/graphs/PivotTables; evaluate formula expressions and port calculations to web apps; automate common spreadsheet tasks, and much more!

Documentation

Constellation

  • https://oss.sheetjs.com/notes/: File Format Notes

  • ssf: Format data using ECMA-376 spreadsheet format codes

  • xlsx-cli: NodeJS command-line tool for processing files

  • cfb: Container (OLE/ZIP) file processing library

  • codepage: Legacy text encodings for XLS and other legacy spreadsheet formats

  • dta: Stata DTA file processor

  • test_files: Test files and various plaintext baselines.

License

Please consult the attached LICENSE file for details. All rights not explicitly granted by the Apache 2.0 License are reserved by the Original Author.

版本与发布记录

@datalens-tech/xlsx 共发布 3 个版本,首次发布于 2023/12/22;过去 12 个月发布了 0 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.20.3latest2024/08/092 年前
0.20.22024/03/232 年前
0.20.12023/12/222 年前

关于 @datalens-tech/xlsx 的常见问题

@datalens-tech/xlsx 是什么?

SheetJS Spreadsheet data parser and writer

如何安装 @datalens-tech/xlsx?

在项目目录运行 npm install @datalens-tech/xlsx,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 xlsx,可以用 npx xlsx 直接运行。

@datalens-tech/xlsx 支持 TypeScript 吗?

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

@datalens-tech/xlsx 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@datalens-tech/xlsx 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=0.8。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@datalens-tech/xlsx 可以商用吗?

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

@datalens-tech/xlsx 的下载量有多少?

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

@datalens-tech/xlsx 还在维护吗?

最新版本 0.20.3 发布于 2024/08/09(2 年前);至今共发布 3 个版本,其中过去 12 个月发布了 0 个;首次发布于 2023/12/22。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。