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

@crap4ts/crap4ts

v1.0.0

Published

A thin npm launcher for the crap4ts TypeScript CRAP quality gate

Readme

crap4ts

@crap4ts/crap4ts is the npm distribution of the standalone Rust CRAP quality-gate CLI. The package contains only a launcher. At install time npm selects one matching optional platform package; the launcher passes arguments, standard streams, signals, and the child exit status through to that native binary.

Supported package targets are:

  • Linux x64 (@crap4ts/linux-x64)
  • Linux arm64 (@crap4ts/linux-arm64)
  • macOS x64 (@crap4ts/darwin-x64)
  • macOS arm64 (@crap4ts/darwin-arm64)
  • Windows x64 (@crap4ts/win32-x64)

The supported Node.js range is >=20.19.0 <25, covering the maintained Node 20, 22, and 24 LTS lines. Install with:

npm install --save-dev @crap4ts/crap4ts
npx crap4ts --help

There is no postinstall download. If npm optional dependencies are disabled, or a platform package is missing, the executable reports the package and platform that need to be installed. Unsupported platforms can use the direct Cargo-built binary instead.

The CLI reads crap4ts.json (or .crap4ts.json/crap4ts.config.json) as strict JSON. A project can use an existing Istanbul artifact (the default), an LCOV tracefile (--coverage-format lcov), or a direct argv coverage command. Conventional tests and generated directories are excluded from discovery by default; source_filters.include_tests and source_filters.include_generated opt them in, while .git and node_modules remain permanently excluded. Generated commands are never shell-split; Windows .cmd/.bat shims are rejected, so use a native .exe (for example node.exe plus npm-cli.js) rather than npm in a command array. Generated coverage is deleted and recreated only inside the project root, and child output is forwarded to stderr.

Use --format text for a terminal report or --format json for the stable versioned contract. Single-project output is JSON schema v1; independent package groups use schema v2. Exit status 0 is a passing gate, 1 is invalid input/analysis failure, and 2 is a measured score above its threshold. Unknown coverage remains unknown; --report-only only keeps those rows in the report.

The native target set is Linux x64/arm64 (glibc), macOS x64/arm64, and Windows x64. The npm wrapper contains no analyzer implementation and does not download executables at install time. JavaScript sources, raw V8 coverage, source-map reconstruction, HTML/SARIF reports, baselines, and changed-lines gates are not part of v1. Standalone release archives, SHA256SUMS, and the separate npm/NPM-SHA256SUMS manifest are available for users who do not use npm.

For operators installing from a release archive, choose the archive whose name ends in linux-x64, linux-arm64, darwin-x64, darwin-arm64, or win32-x64; verify its SHA-256 entry before extraction. The archive includes the executable, license, and operator documentation.