css-select
npmv7.0.0TypeScripta 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.
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.
Licenses in the dependency tree
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.
| Package | Weekly downloads | Dependents | License | Last release |
|---|---|---|---|---|
| css-selectthis page | 0 | 1 | BSD-2-Clause | 5 months ago |
| postcss | 249.3M | 7 | MIT | 1 day ago |
| csstype | 142.8M | 2 | MIT | 1 day ago |
| diff | 124.1M | 4 | BSD-3-Clause | 1 day ago |
| react-style-singleton | 59.1M | 2 | MIT | 1 day ago |
| css.escape | 48.7M | 2 | MIT | 1 day ago |
Dependencies
Declared by css-select v7.0.0. Runtime dependencies are installed with the package; dev dependencies are not.
Dev (11)
Used by
Popular packages that depend on css-select.
Relationship graph
Dependencies (left) and dependents (right) of css-select.
Frequently installed together
An AST-based pattern checker for JavaScript.
Prettier is an opinionated code formatter
Delightful JavaScript Testing.
TypeScript definitions for node
Utilities for working with htmlparser2's dom
Handler for htmlparser2 that turns pages into a dom
all the types of nodes in htmlparser2's dom
two functions: One that returns true, one that returns false
a CSS selector parser
Release history
5 releases in the last two years, typically about 12 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 7.0.0latest | 5 months ago | 208 KB | BSD-2-Clause |
| 6.0.0 | 1 year ago | 320 KB | BSD-2-Clause |
| 5.2.2 | 1 year ago | 262 KB | BSD-2-Clause |
| 5.2.1 | 1 year ago | 91 KB | BSD-2-Clause |
| 5.2.0 | 1 year ago | 254 KB | BSD-2-Clause |
| 5.1.0 | 4 years ago | 219 KB | BSD-2-Clause |
| 5.0.1 | 4 years ago | 216 KB | BSD-2-Clause |
| 5.0.0 | 4 years ago | 215 KB | BSD-2-Clause |
| 4.3.0 | 4 years ago | 81 KB | BSD-2-Clause |
| 4.2.1 | 4 years ago | 77 KB | BSD-2-Clause |
| 4.2.0 | 4 years ago | 76 KB | BSD-2-Clause |
| 4.1.3 | 5 years ago | 76 KB | BSD-2-Clause |
| 4.1.2 | 5 years ago | 76 KB | BSD-2-Clause |
| 4.1.1 | 5 years ago | 76 KB | BSD-2-Clause |
| 4.1.0 | 5 years ago | 76 KB | BSD-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
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.