SheetJS 之禅
SheetJS 的设计和开发遵循一些关键原则。
¥SheetJS design and development is guided by a few key principles.
数据处理应该适合任何工作流程
¥Data processing should fit in any workflow
该库没有强加单独的生命周期。它非常适合使用任何框架构建的网站和应用。纯 JS 数据对象可以与 Web Workers 和未来的 API 很好地配合。
¥The library does not impose a separate lifecycle. It fits nicely in websites and apps built using any framework. The plain JS data objects play nice with Web Workers and future APIs.
JavaScript 是一种强大的数据处理语言
¥JavaScript is a powerful language for data processing
"通用电子表格格式" 是工作簿核心概念的简单对象表示。实用工具 提供用于处理对象的底层工具。
¥The "Common Spreadsheet Format" is a simple object representation of the core concepts of a workbook. Utilities provide low-level tools for working with the object.
SheetJS 提供了处理常见 JavaScript 数据结构的便捷方法。导出教程 将强大的 JS 数组方法与网络请求库相结合,用于下载数据、选择我们想要的信息并创建工作簿文件。
¥SheetJS provides convenient methods for processing common JavaScript data structures. The Export Tutorial combines powerful JS Array methods with a network request library to download data, select the information we want and create a workbook file.
文件格式是实现细节
¥File formats are implementation details
该解析器涵盖了广泛的常见电子表格文件格式,以确保 "HTML 另存为 XLS" 文件与实际的 XLS 或 XLSX 文件一样工作。
¥The parser covers a wide gamut of common spreadsheet file formats to ensure that "HTML-saved-as-XLS" files work as well as actual XLS or XLSX files.
作者支持多种常见的输出格式,以与数据生态系统广泛兼容。
¥The writer supports a number of common output formats for broad compatibility with the data ecosystem.
在最大程度上,数据处理代码不应该担心所涉及的特定文件格式。
¥To the greatest extent possible, data processing code should not have to worry about the specific file formats involved.
数据处理应保密
¥Data processing should be confidential
所有与 SheetJS 相关的方法都在本地运行。处理数据时不会将任何数据发送给第三方。不收集任何遥测数据。
¥All SheetJS-related methods run locally. No data is sent to a third party in processing data. No telemetry is collected.
SheetJS 库经常在离线场景中使用来处理个人身份信息 (PII) 和其他分类数据。
¥SheetJS libraries are regularly used in offline scenarios to process personally identifiable information (PII) and other classified data.