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

xl-chunker

v1.0.0

Published

Stream massive Excel files to CSV chunks

Readme

🧩 xl-chunker

xl-chunker is a lightweight Node.js CLI tool that slices huge Excel files into smaller, manageable CSV chunks using streaming — without blowing up your memory.

Built for people who deal with massive spreadsheets and just want things to work.


🚀 What it Does

  • 📂 Reads large Excel files efficiently using streaming
  • ✂️ Breaks data into row-based chunks
  • 🧾 Preserves headers in every output file
  • 🎯 Lets you define an exact cell range (e.g. B4BN542549)
  • 📄 Outputs clean CSV files
  • 💾 Saves your settings so you can rerun easily

🛠️ Tech Stack

  • Node.js
  • ExcelJS (stream reader) – no full-file memory load
  • CSV output for maximum compatibility

📦 Installation (Global)

Install xl-chunker globally using npm:

npm install -g xl-chunker

Requires Node.js v14+


▶️ Usage

Once installed globally, run it from anywhere:

xl-chunker

You’ll be prompted for:

  • Source file path & name
  • Worksheet (tab) name
  • Start & end cell (e.g. B4 to BN542549)
  • Chunk size (rows per file)
  • Output directory
  • Output file name template

📂 Example Output

users_part1.csv
users_part2.csv
users_part3.csv
...

Each file automatically includes the header row.


🔁 Reusing Settings

After the first successful run, a Setting.json file is generated.

Next time, just provide the path to this file and skip all prompts 🚀


⚡ Why xl-chunker?

  • ❌ No Excel crashes
  • ❌ No RAM overload
  • ✅ Fast & streaming-based
  • ✅ Simple CLI
  • ✅ Perfect for automation

Ideal for:

  • Data migration
  • ETL pipelines
  • Upload size limits
  • Analytics preprocessing

🧠 Pro Tip

If Excel struggles to open your file, xl-chunker won’t.
It processes rows one-by-one like a champ 💪


🧪 Local Development

Clone and test locally:

git clone https://github.com/your-username/xl-chunker.git
cd xl-chunker
npm install
npm link
xl-chunker

📄 License

MIT — do whatever you want, just don’t blame me 😉