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

web-xlsx

v1.0.0

Published

Read and write Excel (.xlsx) files in the browser or Node.js. Zero dependencies.

Downloads

1,049

Readme

web-xlsx

📖 This document is an AI-generated translation. The authoritative source is the Japanese version: README.ja.md.

npm version bundle size dependencies types license

A TypeScript xlsx read/write library that works in both browsers and Node.

See the demo page here.

Features

  • Small bundle with zero dependencies
  • Parse into typed rows from a schema
  • Use the same schema for read and write
  • Unified return values via a Result type

Installation

npm install web-xlsx
pnpm add web-xlsx
bun add web-xlsx
  • ESM only
  • Node.js 22 or later
  • Browsers: current versions with deflate-raw support

Quick Start

For details on each API and its options, see docs/api/.

read

import { parseFile, defineSchema } from "web-xlsx";

const schema = defineSchema({
  Name: { prop: "name", type: "string", required: true },
  Age: { prop: "age", type: "number" },
  HireDate: { prop: "hireDate", type: "date" },
});

const result = await parseFile(file, { schema });
if (result.ok) {
  console.log(result.data);
  // { name: string; age: number|null; hireDate: Date|null }[]
}

write

import { build } from "web-xlsx/write";

// Write using the same schema as read (the return value is the same Result as read)
const written = await build(result.data, { schema });
if (written.ok) {
  console.log(written.data); // Uint8Array
}

Limitations

  • read: formulas are not evaluated
  • read: rejects reading when the header has duplicate column names
  • read: a type: 'number' column receiving a date-formatted cell yields a "not a number" error (use type: 'date' for dates)
  • write: only a single sheet with a plain table
  • write: extremely large or small numbers may render in exponential notation
  • read/write: dates are treated as local time by default
  • read/write: a Date before 1900-01-01 becomes a negative serial value and shows as #### in Excel

Not supported

  • read: bulk reading of multiple sheets
  • read: expanding merged cells
  • read: ZIP64 and encrypted workbooks
  • read/write: streaming

License

MIT