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

@toddiuszho/markdown-convert

v1.1.1

Published

Convert Markdown to styled RTF, HTML, or macOS clipboard rich text via pandoc

Downloads

424

Readme

@toddiuszho/markdown-convert

Convert Markdown to styled RTF, HTML, or macOS clipboard rich text via pandoc.

Quick Start

# file → RTF (default)
npx @toddiuszho/markdown-convert README.md

# file → HTML
npx @toddiuszho/markdown-convert --html README.md

# file → macOS clipboard as rich text
npx @toddiuszho/markdown-convert --copy README.md

# pipe from stdin
cat notes.md | npx @toddiuszho/markdown-convert --html

Prerequisites

Pandoc must be installed:

# macOS
brew install pandoc

# Debian / Ubuntu
sudo apt-get install pandoc

Install

# run directly (no install needed)
npx @toddiuszho/markdown-convert [OPTIONS] [FILE.md]

# or install globally
npm install -g @toddiuszho/markdown-convert
markdown-convert [OPTIONS] [FILE.md]

Usage

markdown-convert [OPTIONS] [FILE.md]
cat FILE.md | markdown-convert [OPTIONS]

Formats

| Flag | Description | |------|-------------| | --rtf | Output RTF (default) | | --html | Output standalone styled HTML | | --copy | Copy rich text to macOS clipboard (pbcopy) |

Input

| Flag | Description | |------|-------------| | FILE.md | Read from a Markdown file | | (stdin) | Pipe Markdown via stdin | | -p, --paste | Read Markdown from macOS clipboard (pbpaste) |

Output

| Flag | Description | |------|-------------| | -o, --output FILE | Write to a specific file | | (default) | Derive filename from input (e.g. README.mdREADME.rtf), or write to stdout |

Styling

| Flag | Description | |------|-------------| | --css FILE | Use a custom CSS file instead of the built-in style |

The built-in style is designed for clean, readable email-friendly output. To override it, pass your own CSS file with --css.

Other

| Flag | Description | |------|-------------| | -h, --help | Show help | | -v, --version | Show version |

Examples

# Markdown file to RTF file
markdown-convert README.md                  # → README.rtf

# Markdown file to HTML file
markdown-convert --html README.md           # → README.html

# Explicit output path
markdown-convert -o out.rtf README.md

# Copy styled rich text to macOS clipboard
markdown-convert --copy README.md

# Read Markdown from clipboard, copy rich text back
markdown-convert -p --copy

# Pipe from stdin to stdout
cat notes.md | markdown-convert             # RTF to stdout
cat notes.md | markdown-convert --html      # HTML to stdout

# Use custom CSS
markdown-convert --css my-style.css README.md

Platform Notes

The --copy and --paste flags use macOS-specific tools (pbcopy via osascript and pbpaste) and are only available on macOS. All other functionality works on any platform where pandoc and Node.js are installed.

License

MIT