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

notignored-sdk

v0.1.12

Published

Typed TypeScript SDK for notignored: every lint and type-check suppression in a source tree, as records.

Downloads

968

Readme

notignored-sdk

Typed TypeScript SDK for notignored: every lint and type-check suppression comment in a source tree — # noqa, // eslint-disable-next-line, #[allow(…)], and the rest — as records you can query, from Node.

It drives the real notignored binary and mirrors the CLI, so a vitest suite, a GitHub Actions step, and notignored on your terminal all report the same thing.

Install

npm install notignored-sdk notignored-cli

notignored-cli carries the prebuilt binary; the SDK runs whatever it finds. Already have notignored on PATH (from pip install notignored-cli, cargo install, or the install script)? Then the SDK is all you need.

Use

import { scan } from "notignored-sdk";

const report = await scan(["src"]);
for (const directive of report.ignores) {
  const rules = directive.rules.join(", ") || "every rule";
  console.log(
    `${directive.path}:${directive.line} silences ${rules} (${directive.scope})` +
      ` — ${directive.reason ?? "no reason given"}`,
  );
}

The review case — only the suppressions this branch added:

const added = await scan(["."], { diff: true, diffBase: "origin/main" });
if (added.ignores.some((directive) => directive.reason === null)) {
  throw new Error("this change adds a suppression with no stated reason");
}

scan(paths?, options?)

| | | | --- | --- | | paths | Files and directories to scan; directories are walked recursively, honouring .gitignore. Defaults to the working directory. | | options.diff | Report only the suppressions this change added (--diff). | | options.diffBase | The git revision or range to compare against (--diff-base). Requires diff: true. | | options.tools | Report only these tools (--tool): eslint, biome, ruff, typescript, mypy, pyright, ty, rust, shellcheck, llmlint. | | options.cwd | Where to run. Report paths are relative to it. |

Those four are the whole options bag; there is no fifth.

It resolves to a Report — the same versioned JSON contract notignored --format json prints, field for field:

interface Report {
  version: number;
  ignores: IgnoreDirective[];
  errors: ReportError[];
}

Only a run that completed resolves. notignored exits non-zero when it could not read a file — even though it still prints the envelope, with that file in errors — so scan rejects with NotignoredExitError rather than hand back a report of a scan that skipped part of the tree. Read exitCode and stderr to decide what to do about it.

Finding the binary

In order: the NOTIGNORED_BIN environment variable, the notignored-cli package installed beside this one, then PATH. With none of them, scan rejects with NotignoredBinaryNotFoundError and the ways to install one.

There is no call-site option for this on purpose — one mechanism, settable by a CI step or a test harness without touching any call site.

Errors

Every rejection is a NotignoredError:

| | | | --- | --- | | NotignoredUsageError | The call does not describe a run (diffBase without diff, an unknown tool). Nothing was spawned. | | NotignoredBinaryNotFoundError | No notignored could be resolved. | | NotignoredSpawnError | One was resolved and could not be started; cause is the operating system's error. | | NotignoredExitError | It exited non-zero, for any reason; exitCode, signal, and verbatim stderr say which. | | NotignoredContractError | A clean run's output is not a report this SDK can read — a missing field, an unknown one, or an envelope from a newer build. |

Working on it

From the repository root:

just bootstrap                          # provisions every project
just nx run notignored-sdk-npm:check    # this project's gate alone
just check                              # the whole repo's gate

License

MIT