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

@negokaz/excel-cli

v0.4.2

Published

CLI tool for Excel operations

Readme

excel-cli

excel-cli is a command-line tool for treating Excel workbooks, sheets, and ranges as structured resources.

Features

  • Read workbook, sheet, or range data as JSON
  • Read formulas and styles in addition to values
  • Write values, formulas, styles, and sheet properties from JSON
  • Export HTML artifacts under .excel-cli/ for broad inspection and visual layout checks

🪟Windows only:

  • Live edits through OLE automation when Excel is available
  • Export PNG captures under .excel-cli/ through OLE automation

Installation

Requires Node.js 20 or later.

npm install -g @negokaz/excel-cli

Installing the Agent Skill

This repository also includes an agent skill at skills/excel-cli/.

You can install the skill with:

gh skill install negokaz/excel-cli excel-cli

Command Summary

excel-cli read <file> [<path>] [--value | --formula | --style]
excel-cli query <file> [<path>]
excel-cli write <file> [<path>] (--value <json|-> | --formula <json|-> | --style <json|-> | --props <json|->)
excel-cli add <file> [<path>]
excel-cli remove <file> [<path>] [--force]
excel-cli export <file> [<path>] --format <html|png> [--formula] [--style]

Paths

Commands address workbook resources through a canonical <file> [<path>] pair. <path> is optional; when omitted it defaults to "" (workbook root).

Supported initial paths:

  • `` (empty string, workbook root)
  • Sheet1
  • Sheet1/A1
  • Sheet1/A1:C3

Path rules:

  • paths must not begin with /
  • sheet names use canonical path segments: Unicode characters are preserved, while ASCII characters that require escaping remain percent-encoded
  • range output is canonicalized to uppercase cell references
  • Excel-style references such as Sheet1!A1:C3 are rejected

Examples

Enumerate sheets:

excel-cli query book.xlsx
{
  "path": "",
  "kind": "sheetCollection",
  "backend": "excelize",
  "items": [
    { "path": "Data", "kind": "sheet", "name": "Data" },
    { "path": "Hidden%20Sheet", "kind": "sheet", "name": "Hidden Sheet" }
  ]
}

Read workbook, sheet, and range resources:

excel-cli read book.xlsx ""
excel-cli read book.xlsx Data
excel-cli read book.xlsx Data/A1:C2 --formula
excel-cli read book.xlsx Data/A1:C2 --style

Write values, formulas, styles, and sheet properties:

excel-cli write book.xlsx Data/A2:B2 --value '[["Alice",95]]'
excel-cli write book.xlsx Data/C2 --formula '[["=SUM(3,4)"]]'
excel-cli write book.xlsx Data/A1:B1 --style '[[{"font":{"bold":true}}, null]]'
excel-cli write book.xlsx Hidden%20Sheet --props '{"hidden":false}'
echo '[[123]]' | excel-cli write book.xlsx Data/A1 --value -

Create and remove worksheets:

excel-cli add book.xlsx Sales
excel-cli remove book.xlsx Sales
excel-cli remove book.xlsx Sales --force

remove is a dry-run by default. It validates that the sheet can be removed and returns JSON with wouldRemove: true. The workbook is only changed when --force is provided.

Export derived artifacts:

excel-cli export book.xlsx Data --format html --formula --style
excel-cli export book.xlsx Data/A1:C10 --format png

HTML and PNG files are created under .excel-cli/.

Notes

  • write --value, write --formula, and read --value, read --formula are designed to round-trip through the same 2-dimensional JSON shape
  • write --style accepts a 2-dimensional array of style objects or null
  • write --props currently supports only worksheet hidden
  • write reads the JSON payload from standard input when the selected update argument is -
  • remove fails if the target sheet does not exist or if it is the workbook's only worksheet

The design notes in docs/ are the primary reference for command contracts and migration intent.

Supported Platforms

| Platform | Architecture | |----------|--------------| | Windows | x64, arm64 | | macOS | x64, arm64 | | Linux | x64, arm64 |

License

MIT