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

uncoverage

v0.1.0

Published

Extract uncovered lines from Istanbul coverage reports — with context — ready to paste into ChatGPT, Claude, or Gemini for debugging or test generation.

Downloads

3

Readme

uncoverage

CI NPM Version npm downloads

⚡ Easily extract uncovered code context from Istanbul coverage reports — perfect for debugging with AI assistants like ChatGPT, Claude, or Gemini.

✨ What is this?

uncoverage is a simple CLI tool that helps you extract surrounding lines of uncovered code from Istanbul-style coverage reports (coverage-final.json).

You can quickly copy/paste context into your favorite LLM (Large Language Model) such as:

  • 🧠 ChatGPT
  • 🧠 Claude
  • 🧠 Gemini

This is useful when you're trying to understand why something isn't covered or want help generating missing test cases.

📦 Currently supported

  • Istanbul coverage format (e.g. generated by Jest, nyc, vitest)

🚀 Usage

You can run it directly with npx:

npx uncoverage coverage/coverage-final.json

or install globally:

npm install -g uncoverage
uncoverage coverage/coverage-final.json

🛠 What it does

  • Parses coverage-final.json
  • Finds all uncovered statements
  • Groups adjacent uncovered lines (with context lines before/after)
  • the grouped code context with line numbers and ← uncovered markers will be copied to your clipboard

⚙️ CLI Options

| Flag | Type | Default | Description | | ---------- | ------- | ------- | ----------------------------------------------------- | | --before | Number | 1 | Number of lines before uncovered lines to include | | --after | Number | 1 | Number of lines after uncovered lines to include | | --output | String | – | Write the output to a file (Markdown format) | | --print | Boolean | false | Print to stdout instead of copying to clipboard |

🧪 Example

npx uncoverage coverage/coverage-final.json --before 2 --after 3 --print

This will print Markdown-formatted uncovered code with 2 lines before and 3 lines after each uncovered block.

💡 Example output

## ❗ Here are the files and code blocks that are not covered by tests

### `src/utils/math.ts`

#### 🧩 Lines 42 - 45

```ts
  40: const a = 1;
  41: const b = 2;
  42: if (!user.email) return; // ← uncovered
  43: await sendWelcomeEmail(user); // ← uncovered
  44: user.notified = true; // ← uncovered
  45: return user; // ← uncovered
  46: log(user);
  47: return;

🧠 Why?

Sometimes you don’t want a full HTML coverage report — just the exact code that isn’t covered, in a form you can easily show to ChatGPT or Claude to ask:

“Can you help me write tests for this?”

That’s what uncoverage is for. 🚀

🧙‍♂️ Author

Made with 💛 by @mildronize

🧾 License

MIT