prettier-plugin-xquery weekly downloads statistics
By DrRataplan · npm · Prettier plugins
Prettier plugin for XQuery files
prettier-plugin-xquery has 207 recorded weekly downloads on npm, a decrease of 29.6% over the past 30 days.
It ranks #1585 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -35.7%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About prettier-plugin-xquery
Prettier for XQuery
prettier-plugin-xquery is a prettier plugin for XQuery. prettier is an opinionated code formatter that supports multiple languages and integrates with most editors. The idea is to eliminate discussions of style in code review and allow developers to get back to thinking about code design instead.
Demo
A demo page lives at xquery.elliat.nl.
Getting started
To run prettier with the XQuery plugin, you're going to need node.
If you're using the npm CLI, then add the plugin by:
Or if you're using yarn, then add the plugin by:
The prettier executable is now installed and ready for use:
Add a .prettierrc.js to save the configuration
Configuration
| API Option | CLI Option | Default | Description |
| printWidth | --print-width | 80 | Same as in Prettier (see prettier docs). | tabWidth | --tab-width | 2 | Same as in Prettier (see prettier docs). | singleQuote | --single-quote | false | Same as in Prettier (see prettier docs). | useTabs | --use-tabs | false | Same as in Prettier (see prettier docs).
Any of these can be added to your existing prettier configuration file. For example:
Or, they can be passed to prettier as arguments:
Ignoring
A prettier-ignore comment marks code as ignored for formatting. Like this:
Dialects
The following different extensions to XQuery will be picked up and formatted:
• The update node syntax in Exist DB: update insert element div {} into /, sponsored by ExistSolutions • XQuery Update Facility 3.0: insert node element div {} into /
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/drrataplan/prettier-plugin-xquery.
This plugin is under development, the following features are planned:
• Extensible parsers, for the different dialects of XQuery, like the customizations in MarkLogic • General stability. Refer to list of known test failures for a report of current known failing tests.
License
The package is available as open source under the terms of the MIT License.
Credits
This project uses the rex parser generator to parse XQuery.
Description from the npm listing.
- prettier
- prettier-plugin
- xquery
- xpath
- xml
- formatter
- code-formatter
- fonto
- exist-db
Where prettier-plugin-xquery sits in the listing
Each band is one page of 20. Weekly downloads on a log scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Recent observations
Full history (121)Similar npm Prettier plugins plugins
Data source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/prettier-plugin-xquery. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.