</>PackageGraphPackageGraph

test-exclude

npmv8.0.0

test for inclusion or exclusion of paths using globs

Safe to adopt

Yes — test-exclude scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 199 days ago. 2 releases in the last 2 years.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 199 days ago. 2 releases in the last 2 years.

  • BWeight: grade B, Good.

    Pulls in 8 transitive packages, about 2.7 MB installed (at least — some of the tree is still being crawled).

  • ASupply chain: grade A, Excellent.

    No install scripts, 3 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    ISC — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding test-exclude to a project.

3
Direct dependencies

Runtime packages this one declares itself.

8
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

2.7 MB
Install size

Unpacked size of this package plus its entire runtime tree.

3
Tree depth

Longest resolved dependency chain below this package.

Part of this dependency tree has not been crawled yet, so these figures are a lower bound rather than a final total.

Licenses in the dependency tree

BlueOak-1.0.0MIT

Every license you inherit by installing test-exclude, not just its own. Check this before a legal review, not after.

Compatibility

Node.js
node 20 || >=22
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the test-exclude README.

const TestExclude = require('test-exclude');
const exclude = new TestExclude();
if (exclude().shouldInstrument('./foo.js')) {
    // let's instrument this file for test coverage!
}

test-exclude vs the alternatives

Packages solving a similar problem in the npm ecosystem, compared on the signals that drive an adoption decision.

PackageWeekly downloadsDependentsLicenseLast release
test-excludethis page01ISC6 months ago
filter-obj15.8M1MIT1 day ago
is-glob137.4M3MIT1 day ago
fast-glob135.1M8MIT1 day ago
cosmiconfig115.3M3MIT1 day ago
totalist30M1MIT1 day ago

Dependencies

Declared by test-exclude v8.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (2)

c8 ^9.1.0tap ^19.2.2

Used by

Popular packages that depend on test-exclude.

Relationship graph

Dependencies (left) and dependents (right) of test-exclude.

Frequently installed together

Release history

2 releases in the last two years, typically about 32 days apart.

Recent versions of test-exclude
VersionPublishedSizeLicense
8.0.0latest6 months ago11 KBISC
7.0.26 months ago11 KBISC
7.0.12 years ago11 KBISC
7.0.02 years ago11 KBISC
6.0.06 years ago23 KBISC
6.0.0-alpha.36 years ago23 KBISC
6.0.0-alhpa.36 years ago23 KBISC
6.0.0-alpha.26 years ago22 KBISC
6.0.0-alpha.17 years ago19 KBISC
6.0.0-alpha.07 years ago18 KBISC
5.2.37 years ago17 KBISC
5.2.27 years ago17 KBISC
5.2.17 years ago17 KBISC
5.2.07 years ago17 KBISC
5.1.07 years ago15 KBISC

Overview

test-exclude is an npm package that test for inclusion or exclusion of paths using globs. It has 1 known dependents in the graph. The latest version is 8.0.0, released under the ISC license.

Who should use it

Teams working in the npm ecosystem who need test for inclusion or exclusion of paths using globs and value a focused solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (ISC).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Keywords

Frequently asked questions

Should I use test-exclude?

Yes — test-exclude scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 199 days ago. 2 releases in the last 2 years.

How do I install test-exclude?

Run `npm install test-exclude` to add test-exclude to your npm project.

How many dependencies does test-exclude have?

test-exclude declares 5 direct dependencies and pulls in 8 packages in total once its runtime tree is resolved totalling about 2.7 MB on disk.

What license is test-exclude released under?

test-exclude is distributed under the ISC license. Its dependency tree also includes: BlueOak-1.0.0, MIT.

How popular is test-exclude?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on test-exclude.

Is test-exclude still maintained?

The most recent release of test-exclude (v8.0.0) was published 6 months ago.

Does test-exclude run install scripts?

No. test-exclude does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.