</>PackageGraphPackageGraph

css-what

npmv8.0.0TypeScript

a CSS selector parser

Safe to adopt

Yes — css-what scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 176 days ago. 5 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 176 days ago. 5 releases in the last 2 years.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies, about 528 KB 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-what to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

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

528 KB
Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

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-what README.

import * as CSSwhat from "css-what";

CSSwhat.parse("foo[bar]:baz")

~> [
    [
        { type: "tag", name: "foo" },
        {
            type: "attribute",
            name: "bar",
            action: "exists",
            value: "",
            ignoreCase: null
        },
Example truncated — see the full README.

Dependencies

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

Dev (9)

@biomejs/biome ^2.4.7@eslint/compat ^2.0.3@feedic/eslint-config ^0.3.1@types/node ^25.5.0eslint ^10.0.3eslint-config-biome ^2.1.3typescript ^5.9.3typescript-eslint ^8.57.1vitest ^4.0.18

Used by

Popular packages that depend on css-what.

Relationship graph

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

cheerio-selectcss-selectcss-what
css-what dependencies dependents

Frequently installed together

Release history

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

Recent versions of css-what
VersionPublishedSizeLicense
8.0.0latest5 months ago528 KBBSD-2-Clause
7.0.01 year ago560 KBBSD-2-Clause
6.2.21 year ago64 KBBSD-2-Clause
6.2.11 year ago560 KBBSD-2-Clause
6.2.01 year ago8.2 KBBSD-2-Clause
6.1.04 years ago64 KBBSD-2-Clause
6.0.14 years ago64 KBBSD-2-Clause
6.0.04 years ago64 KBBSD-2-Clause
5.1.04 years ago32 KBBSD-2-Clause
5.0.15 years ago32 KBBSD-2-Clause
5.0.05 years ago29 KBBSD-2-Clause
4.0.05 years ago27 KBBSD-2-Clause
3.4.26 years ago23 KBBSD-2-Clause
3.4.16 years ago23 KBBSD-2-Clause
3.4.06 years ago23 KBBSD-2-Clause

Overview

css-what is an npm package that a CSS selector parser. It has 2 known dependents in the graph. The latest version is 8.0.0, released under the BSD-2-Clause license.

Who should use it

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

When not to use it

Consider an alternative if you need to 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

  • No significant drawbacks detected from available metadata.

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

Maintainers

Funding

Frequently asked questions

Should I use css-what?

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

How do I install css-what?

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

What license is css-what released under?

css-what is distributed under the BSD-2-Clause license.

How popular is css-what?

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

Is css-what still maintained?

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

Does css-what run install scripts?

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