</>PackageGraphPackageGraph

esquery

npmv1.7.0

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

1
Direct dependencies

Runtime packages this one declares itself.

1
Total installed

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

1.1 MB
Install size

Unpacked size of this package plus its entire runtime tree.

1
Tree depth

Longest resolved dependency chain below this package.

Licenses in the dependency tree

BSD-2-Clause

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.

PackageWeekly downloadsDependentsLicenseLast release
esquerythis page01BSD-3-Clause8 months ago
eslint138.4M279MIT1 day ago
esprima77.6M5BSD-2-Clause1 day ago
espree04BSD-2-Clause1 day ago
es-define-property131.3M4MIT1 day ago
call-bind80.7M5MIT1 day ago

Dependencies

Declared by esquery v1.7.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (16)

@babel/core ^7.9.0@babel/preset-env ^7.9.5@babel/register ^7.9.0@rollup/plugin-commonjs ^11.1.0@rollup/plugin-json ^4.0.2@rollup/plugin-node-resolve ^7.1.3babel-plugin-transform-es2017-object-entries 0.0.5chai 4.2.0eslint ^6.8.0esprima ~4.0.1mocha 7.1.1nyc ^15.0.1pegjs ~0.10.0rollup ^1.32.1rollup-plugin-babel ^4.4.0rollup-plugin-terser ^5.3.0

Used by

Popular packages that depend on esquery.

Relationship graph

Dependencies (left) and dependents (right) of esquery.

estraverseeslintesquery
esquery dependencies dependents

Frequently installed together

jitinpm

Runtime typescript and ESM support for Node.js

0/wk15 dependentsMITTS
eslint-visitor-keysnpm

Constants and utilities about visitor keys to traverse AST.

340.8M/wk4 dependentsApache-2.0TS
escape-string-regexpnpm

Escape RegExp special characters

316.5M/wk8 dependentsMIT
@types/estreenpm

TypeScript definitions for estree

152.1M/wk12 dependentsMITTS
eslintnpm

An AST-based pattern checker for JavaScript.

138.4M/wk279 dependentsMITTS
is-globnpm

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

137.4M/wk3 dependentsMIT
file-entry-cachenpm

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

134.5M/wk1 dependentsMITTS
prettiernpm

Prettier is an opinionated code formatter

114.2M/wk159 dependentsMITTS
@eslint/config-helpersnpm

Helper utilities for creating ESLint configuration

96M/wk1 dependentsApache-2.0TS
esprimanpm

ECMAScript parsing infrastructure for multipurpose analysis

77.6M/wk5 dependentsBSD-2-Clause
json-stable-stringify-without-jsonifynpm

deterministic JSON.stringify() with custom sorting to get deterministic hashes from stringified results, with no public domain dependencies

72.1M/wk1 dependentsMIT
webpacknpm

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.

49.8M/wk29 dependentsMITTS

Release history

1 release in the last two years, typically about 90 days apart.

Recent versions of esquery
VersionPublishedSizeLicense
1.7.0latest8 months ago1.0 MBBSD-3-Clause
1.6.02 years ago1013 KBBSD-3-Clause
1.5.03 years ago977 KBBSD-3-Clause
1.4.23 years ago988 KBBSD-3-Clause
1.4.13 years ago988 KBBSD-3-Clause
1.4.05 years ago963 KBBSD-3-Clause
1.3.16 years ago689 KBBSD-3-Clause
1.3.06 years ago686 KBBSD-3-Clause
1.2.16 years ago683 KBBSD-3-Clause
1.2.06 years ago665 KBBSD-3-Clause
1.1.06 years ago93 KBBSD-3-Clause
1.0.18 years ago93 KBBSD-3-Clause
1.0.09 years agoBSD
0.4.011 years agoBSD
0.3.013 years agoBSD

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.