css-what
npmv8.0.0TypeScripta 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.
Runtime packages this one declares itself.
Distinct packages in the full runtime tree, deduplicated the way a package manager would.
Unpacked size of this package plus its entire runtime tree.
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
},Dependencies
Declared by css-what v8.0.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (9)
Used by
Popular packages that depend on css-what.
Relationship graph
Dependencies (left) and dependents (right) of css-what.
Frequently installed together
An AST-based pattern checker for JavaScript.
Utilities for working with htmlparser2's dom
TypeScript definitions for node
Handler for htmlparser2 that turns pages into a dom
two functions: One that returns true, one that returns false
Prettier is an opinionated code formatter
Next generation testing framework powered by Vite
Delightful JavaScript Testing.
a CSS selector compiler/engine
all the types of nodes in htmlparser2's dom
Parses and compiles CSS nth-checks to highly optimized functions.
Release history
5 releases in the last two years, typically about 78 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 8.0.0latest | 5 months ago | 528 KB | BSD-2-Clause |
| 7.0.0 | 1 year ago | 560 KB | BSD-2-Clause |
| 6.2.2 | 1 year ago | 64 KB | BSD-2-Clause |
| 6.2.1 | 1 year ago | 560 KB | BSD-2-Clause |
| 6.2.0 | 1 year ago | 8.2 KB | BSD-2-Clause |
| 6.1.0 | 4 years ago | 64 KB | BSD-2-Clause |
| 6.0.1 | 4 years ago | 64 KB | BSD-2-Clause |
| 6.0.0 | 4 years ago | 64 KB | BSD-2-Clause |
| 5.1.0 | 4 years ago | 32 KB | BSD-2-Clause |
| 5.0.1 | 5 years ago | 32 KB | BSD-2-Clause |
| 5.0.0 | 5 years ago | 29 KB | BSD-2-Clause |
| 4.0.0 | 5 years ago | 27 KB | BSD-2-Clause |
| 3.4.2 | 6 years ago | 23 KB | BSD-2-Clause |
| 3.4.1 | 6 years ago | 23 KB | BSD-2-Clause |
| 3.4.0 | 6 years ago | 23 KB | BSD-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.