</>PackageGraphPackageGraph

css-select

npmv7.0.0TypeScript

a CSS selector compiler/engine

Adopt with care

css-select is usable, with caveats.

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

    No download data reported for this package yet.

  • BMaintenance: grade B, Good.

    Last published 171 days ago. 5 releases in the last 2 years.

  • BWeight: grade B, Good.

    Pulls in 8 transitive packages, about 1.3 MB installed.

  • BSupply chain: grade B, Good.

    This package has a single maintainer (bus factor of 1).

  • ALicense: grade A, Excellent.

    BSD-2-Clause — 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 css-select to a project.

5
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.

1.3 MB
Install size

Unpacked size of this package plus its entire runtime tree.

3
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

BSD-2-ClauseISCMIT

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

Compatibility

Node.js
node >=20.19.0
Module format
ESM only
TypeScript
Types included
Install scripts
None

Quick start

A usage example from the css-select README.

[
    { type: "tag", name: "a" },
    { type: "descendant" },
    { type: "tag", name: "b" },
];

css-select vs the alternatives

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

PackageWeekly downloadsDependentsLicenseLast release
css-selectthis page01BSD-2-Clause5 months ago
postcss249.3M7MIT1 day ago
csstype142.8M2MIT1 day ago
diff124.1M4BSD-3-Clause1 day ago
react-style-singleton59.1M2MIT1 day ago
css.escape48.7M2MIT1 day ago

Dependencies

Declared by css-select v7.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (11)

@biomejs/biome ^2.4.8@eslint/compat ^2.0.3@feedic/eslint-config ^0.3.1@types/node ^25.5.0eslint ^10.1.0eslint-config-biome ^2.1.3globals ^17.4.0htmlparser2 ^12.0.0typescript ^5.9.3typescript-eslint ^8.57.1vitest ^4.1.0

Used by

Popular packages that depend on css-select.

Relationship graph

Dependencies (left) and dependents (right) of css-select.

Frequently installed together

Release history

5 releases in the last two years, typically about 12 days apart.

Recent versions of css-select
VersionPublishedSizeLicense
7.0.0latest5 months ago208 KBBSD-2-Clause
6.0.01 year ago320 KBBSD-2-Clause
5.2.21 year ago262 KBBSD-2-Clause
5.2.11 year ago91 KBBSD-2-Clause
5.2.01 year ago254 KBBSD-2-Clause
5.1.04 years ago219 KBBSD-2-Clause
5.0.14 years ago216 KBBSD-2-Clause
5.0.04 years ago215 KBBSD-2-Clause
4.3.04 years ago81 KBBSD-2-Clause
4.2.14 years ago77 KBBSD-2-Clause
4.2.04 years ago76 KBBSD-2-Clause
4.1.35 years ago76 KBBSD-2-Clause
4.1.25 years ago76 KBBSD-2-Clause
4.1.15 years ago76 KBBSD-2-Clause
4.1.05 years ago76 KBBSD-2-Clause

Overview

css-select is an npm package that a CSS selector compiler/engine. It has 1 known dependents in the graph. The latest version is 7.0.0, released under the BSD-2-Clause license.

Who should use it

Teams working in the npm ecosystem who need a CSS selector compiler/engine and value a focused solution.

When not to use it

Consider an alternative if you need to minimize your dependency tree, or if a more actively-maintained option better fits your npm stack.

Pros

  • Ships TypeScript type definitions.
  • Clear open-source license (BSD-2-Clause).

Cons

  • Large dependency tree (16 direct dependencies) increases install size and audit surface.

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

Maintainers

Keywords

Funding

Frequently asked questions

Should I use css-select?

css-select is usable, with caveats.

How do I install css-select?

Run `npm install css-select` to add css-select to your npm project.

How many dependencies does css-select have?

css-select declares 16 direct dependencies and pulls in 8 packages in total once its runtime tree is resolved totalling about 1.3 MB on disk.

What license is css-select released under?

css-select is distributed under the BSD-2-Clause license. Its dependency tree also includes: BSD-2-Clause, ISC, MIT.

How popular is css-select?

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

Is css-select still maintained?

The most recent release of css-select (v7.0.0) was published 5 months ago.

Does css-select run install scripts?

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