A library for parsing, resolving, and querying Bazel-like labels.
This package provides:
- TargetQuery for querying targets
- BazelLikeSpec for implementing your own Bazel-like label specification
- parse for parsing labels
- build for building labels
- resolve for resolving labels
This package is filesystem-agnostic so that you can use it in any JavaScript runtime.
If you'd like to build a Bazel-like query in Node.js with node:fs
and glob
, please refer to the @109cafe/dummy implementation.