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

tap-to-md

v0.2.1

Published

Convert TAP14 output to Markdown specifications.

Readme

tap-to-md

TAP14 を、テストを仕様書として読みやすい Markdown に変換する CLI ツールです。

Install

Node 18+ または Bun が必要です。npm 配布版は Node 18+ があれば実行できます。

一度だけ実行する場合:

npx tap-to-md -i test.tap -o spec.md

グローバルにインストールする場合:

npm i -g tap-to-md
tap-to-md -i test.tap -o spec.md

開発する場合:

bun install
bun test

Usage

tap-to-md -i test.tap -o spec.md
cat test.tap | tap-to-md

Flags

  • -i, --input <file>: 入力 TAP ファイル。未指定なら stdin。
  • -o, --output <file>: 出力 Markdown ファイル。未指定なら stdout。
  • --fail-only: FAIL のみ出力する。
  • --strict: parser warning や invalid TAP を終了コード 2 にする。
  • --max-diagnostics <bytes>: diagnostics の最大バイト数 (UTF-8 境界で切り詰め)。
  • --version: バージョン表示。
  • -h, --help: ヘルプ表示。

Exit Codes

  • 0: 変換成功。TAP の合否は問いません。
  • 1: CLI 引数、IO、一般エラー。
  • 2: --strict 違反。

Example

TAP version 14
1..2
ok 1 - opens file
not ok 2 - writes file
  ---
  message: permission denied
  ...
tap-to-md -i example.tap
- opens file
- writes file **(FAIL)**
  > message: permission denied

> Generated by [tap-to-md](https://github.com/yumazak/tap-to-md)

出力 Markdown の末尾には、生成元を示すフッタが 1 行追加されます。

既知の制限・将来課題

  • GitHub 公開後に package.jsonrepository / homepage / bugs を追記する
  • IR 層 (parser adapter と IR builder の分離) の整理
  • TAP14 pragma / plan skip-all reason / plan comment 対応
  • subtest comments の遅延取り込み
  • --force フラグ (出力上書き保護)
  • diagnostics YAML serializer の堅牢化 (yaml パッケージ採用検討)