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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@51jbs/incremental-coverage-plugin

v1.0.5

Published

Lightweight incremental coverage plugin based on babel-plugin-istanbul and istanbul-diff

Readme

增量覆盖率插件 (Incremental Coverage Plugin)

🎯 核心目标: 精准追踪代码变更后的覆盖率情况,为研发自测提供量化数据支撑。

本插件基于 babel-plugin-istanbulistanbul-diff,通过集成 Git 差异分析,自动计算自测过程中的增量覆盖率。

✨ 核心价值

  • 🚀 聚焦变更: 告别冗长的全量覆盖率报告,核心关注你改动的那几行代码。
  • 🛡 质量契约: 设置增量覆盖率阈值,作为代码合并与上线的硬性质量指标。
  • 🔗 一站式集成: 深度集成 Git,自动解析 Diff 提取新增行号,无需手动干预。
  • 🔋 生产就绪: 具备防抖上报、故障重试及报告自动清理机制,保障构建链路稳定。

🏗️ 核心模块

| 模块 | 职责 | |------|------| | CoverageCollector | 负责浏览器端数据的收集与内存合并 | | CoverageDiffer | 使用 istanbul-diff 计算基准与当前的差异 | | GitService | 自动提取 Git Diff 变更行号 | | CoverageReporter | 生成可视化 HTML 报告与 JSON 结构化数据 |

📦 安装

前置要求

  • Node.js >= 16.0.0
  • Git 仓库(必需)
  • Webpack 4 或 5(完全支持)
  • webpack-dev-server 3.x 或 4.x(自动适配)

快速安装

npm install @51jbs/incremental-coverage-plugin --save-dev

验证安装

npm ls @51jbs/incremental-coverage-plugin

💡 提示:插件已内置所有必要依赖(包括 @babel/coreistanbul-lib-*),无需额外安装。

📚 快速导航


📄 许可证

本项目采用 MIT 许可证发布。