npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@sheetwrite/xlsx

v0.6.1

Published

Optional XLSX table and workbook backends for Sheetwrite.

Downloads

1,375

Readme

@sheetwrite/xlsx

Optional deterministic OOXML table and workbook backends for @sheetwrite/core. Core does not depend on this package. It uses the pinned fflate codec for bounded ZIP processing.

Install and register

npm install @sheetwrite/core @sheetwrite/xlsx

Register once before calling any core XLSX function or grid.exportXlsx():

import "@sheetwrite/xlsx/register";
import {
  fromXlsxTable,
  fromXlsxWorkbook,
  toXlsxTable,
  toXlsxWorkbook,
} from "@sheetwrite/core";

The registration entry is idempotent. Importing @sheetwrite/xlsx itself is side-effect free. Explicit composition is available through registerXlsxBackends(), sheetwriteWorkbookBackend, sheetwriteTableImportBackend, and sheetwriteTableExportBackend.

Without registration, core XLSX functions identify the missing optional package. CSV and TSV do not require this package.

Table and workbook APIs

  • toXlsxTable(workbook, store, options) and fromXlsxTable(bytes, options) exchange the active or first sheet with a first-row header. Table conversion is in-memory and intentionally reduced-fidelity.
  • toXlsxWorkbook(snapshotOrGrid, options) and fromXlsxWorkbook(bytes, options) preserve multiple sheets, formula source, supported styles and number formats, validations, notes, merges, dimensions, frozen panes, named ranges, and versioned Sheetwrite metadata.

See XLSX import and XLSX export.

New in 0.6.0

  • Kept parts. Workbook import and export keep unmodeled charts, pivot tables, images, VBA and other package parts as compressed bytes in WorkbookSnapshot.workbook.xlsxSource. Cell edits drop kept charts and pivots with a warning; structural edits drop affected images. maxPreservedBytes defaults to 64 MiB; graphs over the limit are dropped with a warning. Table autofilter rules, sort state, calculated-column formulas and totals-row functions also round-trip. See Kept parts and round trips.
  • Streaming. toXlsxTableStream and toXlsxWorkbookStream return a ReadableStream<Uint8Array>. fromXlsxWorkbookFile imports a Blob without buffering every part. Import parses each worksheet from bounded chunks, so its peak memory is lower. See Large files and streaming.
  • Formulas and calculation. Import reads iterate, iterateCount and iterateDelta from <calcPr>, and export writes them. Formulas with intersection, union and 3-D references stay as Excel text.
  • LibreOffice round trip. Import and export fixes cover vertical alignment, column widths, automatic row heights and hyperlink text and styles. Imported cells without vertical alignment now sit at the bottom, as in Excel. LibreOffice 26.8 round-trip results record producer differences separately; they do not establish full Excel or Google Sheets compatibility. See LibreOffice compatibility.

Limits and safety

Every path shares XlsxWorkbookOptions. maxCells defaults to 1,000,000 logical cells. resourceLimits can lower bounds for compressed input, generated output, archive entries, compression ratio, individual and aggregate inflated bytes, sheets, rows, columns, merges, shared strings, styles, XML elements, XML depth, attributes, and text nodes. Invalid overrides fail before codec work; exceeded bounds throw XlsxResourceError. signal is checked before and between bounded operations. Unsupported content is dropped only with a structured onWarning notification.

The reader preflights the complete ZIP central directory and OPC relationship graph before inflating referenced parts. DTDs and custom XML entities are rejected. Applications accepting untrusted files should set host-specific limits lower than the defaults when appropriate.

Framework toolbar XLSX actions call the core backend contract. Applications enabling those actions must register this package explicitly or lazily import @sheetwrite/xlsx/register immediately before use.