esquery
npmv1.7.0A query library for ECMAScript AST using a CSS selector like query language.
Safe to adopt
Yes — esquery scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 252 days ago.
- ?Adoption: grade ?, Not reported by this registry.
No download data reported for this package yet.
- BMaintenance: grade B, Good.
Last published 252 days ago.
- AWeight: grade A, Excellent.
Pulls in 1 transitive package, about 1.1 MB installed.
- ASupply chain: grade A, Excellent.
No install scripts, 2 maintainers, and a contained dependency surface.
- ALicense: grade A, Excellent.
BSD-3-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 esquery 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 esquery, not just its own. Check this before a legal review, not after.
Compatibility
- Node.js
- node >=0.10
- Module format
- ESM + CommonJS
- TypeScript
- No bundled types
- Install scripts
- None
esquery 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 |
|---|---|---|---|---|
| esquerythis page | 0 | 1 | BSD-3-Clause | 8 months ago |
| eslint | 138.4M | 279 | MIT | 1 day ago |
| esprima | 77.6M | 5 | BSD-2-Clause | 1 day ago |
| espree | 0 | 4 | BSD-2-Clause | 1 day ago |
| es-define-property | 131.3M | 4 | MIT | 1 day ago |
| call-bind | 80.7M | 5 | MIT | 1 day ago |
Dependencies
Declared by esquery v1.7.0. Runtime dependencies are installed with the package; dev dependencies are not.
Runtime (1)
Dev (16)
Used by
Popular packages that depend on esquery.
Relationship graph
Dependencies (left) and dependents (right) of esquery.
Frequently installed together
Runtime typescript and ESM support for Node.js
Constants and utilities about visitor keys to traverse AST.
Escape RegExp special characters
TypeScript definitions for estree
An AST-based pattern checker for JavaScript.
Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet
A lightweight cache for file metadata, ideal for processes that work on a specific set of files and only need to reprocess files that have changed since the last run
Prettier is an opinionated code formatter
Helper utilities for creating ESLint configuration
ECMAScript parsing infrastructure for multipurpose analysis
deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results, with no public domain dependencies
Packs ECMAScript/CommonJs/AMD modules for the browser. Allows you to split your codebase into multiple bundles, which can be loaded on demand. Supports loaders to preprocess files, i.e. json, jsx, es7, css, less, ... and your custom stuff.
Release history
1 release in the last two years, typically about 90 days apart.
| Version | Published | Size | License |
|---|---|---|---|
| 1.7.0latest | 8 months ago | 1.0 MB | BSD-3-Clause |
| 1.6.0 | 2 years ago | 1013 KB | BSD-3-Clause |
| 1.5.0 | 3 years ago | 977 KB | BSD-3-Clause |
| 1.4.2 | 3 years ago | 988 KB | BSD-3-Clause |
| 1.4.1 | 3 years ago | 988 KB | BSD-3-Clause |
| 1.4.0 | 5 years ago | 963 KB | BSD-3-Clause |
| 1.3.1 | 6 years ago | 689 KB | BSD-3-Clause |
| 1.3.0 | 6 years ago | 686 KB | BSD-3-Clause |
| 1.2.1 | 6 years ago | 683 KB | BSD-3-Clause |
| 1.2.0 | 6 years ago | 665 KB | BSD-3-Clause |
| 1.1.0 | 6 years ago | 93 KB | BSD-3-Clause |
| 1.0.1 | 8 years ago | 93 KB | BSD-3-Clause |
| 1.0.0 | 9 years ago | — | BSD |
| 0.4.0 | 11 years ago | — | BSD |
| 0.3.0 | 13 years ago | — | BSD |
Overview
esquery is an npm package that a query library for ECMAScript AST using a CSS selector like query language. It has 1 known dependents in the graph. The latest version is 1.7.0, released under the BSD-3-Clause license.
Who should use it
Teams working in the npm ecosystem who need a query library for ECMAScript AST using a CSS selector like query language and value a focused solution.
When not to use it
Consider an alternative if you need to minimize your dependency tree, 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 (BSD-3-Clause).
Cons
- Large dependency tree (17 direct dependencies) increases install size and audit surface.
- 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 esquery?
Yes — esquery scores well across adoption, maintenance, weight, supply chain, and licensing. No download data reported for this package yet. Last published 252 days ago.
How do I install esquery?
Run `npm install esquery` to add esquery to your npm project.
How many dependencies does esquery have?
esquery declares 17 direct dependencies and pulls in 1 packages in total once its runtime tree is resolved totalling about 1.1 MB on disk.
What license is esquery released under?
esquery is distributed under the BSD-3-Clause license.
How popular is esquery?
npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on esquery.
Is esquery still maintained?
The most recent release of esquery (v1.7.0) was published 8 months ago.
Does esquery run install scripts?
No. esquery does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.