https://github.com/npm/query
npm query parser and tools
https://github.com/npm/query
npm-cli
Last synced: about 1 year ago
JSON representation
npm query parser and tools
- Host: GitHub
- URL: https://github.com/npm/query
- Owner: npm
- License: other
- Created: 2022-06-08T16:44:31.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T13:38:33.000Z (over 1 year ago)
- Last Synced: 2025-03-31T04:07:20.846Z (about 1 year ago)
- Topics: npm-cli
- Language: JavaScript
- Homepage:
- Size: 135 KB
- Stars: 7
- Watchers: 7
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
- Security: SECURITY.md
Awesome Lists containing this project
README
# @npmcli/query
Parser and tools for `npm query`.
## parser(str)
The `parser` method receives a query `string` and parses that string using
[`postcss-selector-parser`](https://www.npmjs.com/package/postcss-selector-parser),
it then modifies the returned ast to include information that is then essential
to translate that structure into navigating
[Arborist](https://github.com/npm/cli/tree/latest/workspaces/arborist).
## LICENSE
[ISC](./LICENSE)