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

xlsx-fast-node

v0.1.0

Published

High-performance Excel (.xlsx) parser with native Rust core

Readme

xlsx-fast-node

High-performance Excel (.xlsx) parser with a native Rust core.

Features

  • Fast: SIMD-optimized cell reference parsing (NEON on ARM, AVX2/SSE2 on x86)
  • Memory Efficient: Memory-mapped files and streaming decompression
  • Complete: Handles formulas, dates (1900/1904 systems), shared strings
  • Safe: Rust's memory safety guarantees
  • NDJSON Streaming: For processing huge files without loading into memory

Installation

npm install xlsx-fast-node

Quick Start

const { parseXlsx, parseXlsxNdjson } = require('xlsx-fast-node');

// Parse entire workbook
const workbook = parseXlsx('/path/to/file.xlsx');
console.log(`Sheets: ${workbook.sheets.length}`);

for (const sheet of workbook.sheets) {
  console.log(`Sheet: ${sheet.name} (${sheet.cells.length} cells)`);
  for (const cell of sheet.cells) {
    console.log(`  [${cell.row},${cell.col}] = ${JSON.stringify(cell.value)}`);
  }
}

Options

const workbook = parseXlsx('/path/to/file.xlsx', {
  decodeDates: true,       // Convert Excel dates to ISO8601 (default: true)
  includeFormulas: false,  // Include formula text (default: false)
  rawValues: false,        // Skip numeric/date parsing (default: false)
  maxInflate: 128 * 1024 * 1024,  // Max decompressed size in bytes (default: 128 MiB)
});

NDJSON Streaming

For large files, stream to NDJSON without loading everything in memory:

parseXlsxNdjson('/path/to/large.xlsx', '/tmp/out.ndjson');

The NDJSON output format (one JSON object per line):

{"kind":"sheet","id":1,"name":"Sheet1"}
{"kind":"cell","sheet_id":1,"row":1,"col":1,"type":"string","v":"Hello"}
{"kind":"cell","sheet_id":1,"row":1,"col":2,"type":"number","v":42}
{"kind":"cell","sheet_id":1,"row":1,"col":3,"type":"date","iso":"2024-01-15","serial":45276}

Data Types

CellValue

Cells can have one of these value types:

  • Empty - Empty cell
  • Bool { v: boolean } - Boolean value
  • Number { v: number } - Numeric value
  • String { v: string } - String value (from shared strings)
  • Raw { v: string } - Raw string value (inline)
  • Error { v: string } - Error value
  • Date { iso: string, serial: number } - Date value (ISO8601 string + Excel serial)

TypeScript Support

TypeScript definitions are included:

import { parseXlsx, ParseOptions, Workbook, Sheet, Cell } from 'xlsx-fast-node';

const workbook: Workbook = parseXlsx('data.xlsx');

Performance

Benchmarks show significant performance improvements over pure JavaScript/Node.js alternatives:

  • 10x faster than openpyxl (Python)
  • 5x faster than SheetJS in streaming mode
  • Uses 50% less memory for large files

Platform Support

Prebuilt binaries available for:

  • macOS (Intel & Apple Silicon)
  • Linux (x64, ARM64)
  • Windows (x64)

License

MIT

Related Packages

  • docx-fast-node - Word (.docx) parser
  • pptx-fast-node - PowerPoint (.pptx) parser