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

xlsx2md-cli

v1.8.1

Published

CLI tool for converting OpenXML spreadsheet documents to Pandoc's markdown grid tables.

Readme

xlsx2md-cli

A command-line tool for converting OpenXML spreadsheet documents (.xlsx) to Pandoc-compatible Markdown grid tables.

Features

  • Convert Excel spreadsheets to Markdown grid table format
  • Support for multiple sheets within a workbook
  • Flexible output options (STDOUT or file)
  • STDIN input support for piping
  • Configurable line width for table formatting
  • Locale-aware number and date formatting
  • Row trimming for selective data extraction
  • Sheet and table naming customization

Installation

npm install -g xlsx2md-cli

Or install locally:

npm install xlsx2md-cli

Usage

xlsx2md [options] [source]

Arguments

| Argument | Description | |----------|--------------------------------------------------------| | source | Path to an .xlsx file. If omitted, reads from STDIN. |

Options

| Option | Description | |------------------------------|-----------------------------------------------------------------------------------------| | -V, --version | Output the version number | | -v, --verbose | Always write the result to STDOUT. | | --list | List all sheet names in the workbook | | -o, --output-path <FILE> | Write output to a file instead of STDOUT | | -n, --table-name <NAME...> | Specify custom table name(s) for each sheet | | -s, --sheet-name <NAME...> | Specify one or more sheets in the workbook by name. If omitted, the first sheet is used | | -w, --line-width <WIDTH> | Set maximum characters per line. Defaults to terminal width or 72 | | -r, --use-raw-string | Disable string escaping in cell content | | -t, --trim-rows <RANGE...> | Extract only rows within the specified range(s), format: "start[,end]" | | -l, --locale <LOCALE> | Set localization for number/date formatting. Defaults to system locale | | -h, --help | Display help information |

Examples

Convert the first sheet

xlsx2md -v -o output.md sample.xlsx

Convert a specific sheet by name

xlsx2md -v -o output.md -s "Sheet1" sample.xlsx

Convert multiple sheets

xlsx2md -v -o output.md -s "Sheet1" -s "Sheet2" sample.xlsx

List all sheet names

xlsx2md --list sample.xlsx

Set custom table names

xlsx2md -o output.md -s "Sheet1" -n "My Table" sample.xlsx

Trim rows to a specific range

xlsx2md -o output.md -t "1,10" sample.xlsx

Extract rows from 5 to the end:

xlsx2md -o output.md -t "5,0" sample.xlsx

Use STDIN input

cat sample.xlsx | xlsx2md > output.md

Set custom line width

xlsx2md -w 120 -o output.md sample.xlsx

Disable string escaping

xlsx2md -r -o output.md sample.xlsx

Set locale for formatting

xlsx2md -l "en-US" -o output.md sample.xlsx

Output Format

The tool generates Pandoc-compatible Markdown grid tables, which can be rendered by Pandoc and other Markdown processors that support grid table syntax.

License

MIT