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

@intentee/rust-coverage-check

v0.2.0

Published

Gate cargo-llvm-cov coverage by crate.

Readme

rust-coverage-check

Gate cargo-llvm-cov coverage by crate, with a separate threshold per crate.

Install

npm install --save-dev @intentee/rust-coverage-check

Use

Generate an llvm-cov JSON report from your Rust workspace, then run the checker against it.

cargo llvm-cov clean --workspace
cargo llvm-cov --workspace --no-report
cargo llvm-cov report --json --output-path target/llvm-cov.json
cargo llvm-cov report

npx rust-coverage-check target/llvm-cov.json \
  --workspace-root "$PWD" \
  --gated my_crate=99 \
  --gated another_crate=80
  • <json-path> (positional, required) — path to the cargo llvm-cov JSON report.
  • --workspace-root <path> (required) — your Cargo workspace root. Files outside this directory are ignored.
  • --gated <crate>=<percent> (repeatable, optional) — gate a crate at its own minimum coverage percent (0–100). Lines, functions, and regions are all checked against the same per-crate threshold.

With no --gated flags the tool only prints the per-crate table and exits 0. With at least one --gated flag it prints the table, then exits 1 if any gated crate is below its threshold or is missing from the report.

Makefile integration

.PHONY: coverage
coverage: node_modules
	cargo llvm-cov clean --workspace
	cargo llvm-cov --workspace --no-report
	cargo llvm-cov report --json --output-path target/llvm-cov.json
	cargo llvm-cov report
	npx rust-coverage-check target/llvm-cov.json \
	  --workspace-root $(CURDIR) \
	  --gated my_crate=99 \
	  --gated another_crate=80

License

MIT.