Skip to content
PluginStats

prettier-plugin-xquery weekly downloads statistics

By DrRataplan · npm · Prettier plugins

Prettier plugin for XQuery files

View on npm Fresh · Dec 6, 2026

prettier-plugin-xquery has 534 recorded weekly downloads on npm, an increase of 89.4% over the past 30 days, ranking #2243 of 3,247 tracked listings.

Weekly downloads
534
Official API · Dec 5, 2026
7-day growth
+22.8%
+99 weekly downloads
30-day growth
+89.4%
+252 weekly downloads
90-day growth
+500%
+445 weekly downloads
Rank
#2243
▼ 48 in 7 days

About prettier-plugin-xquery

Prettier for XQuery

NPM
version Tests Coverage
Status

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:

npm install --save-dev prettier prettier-plugin-xquery

Or if you're using yarn, then add the plugin by:

yarn add --dev prettier prettier-plugin-xquery

The prettier executable is now installed and ready for use:

npx prettier --plugin=prettier-plugin-xquery --write '**/*.xq*'

Add a .prettierrc.js to save the configuration

import prettierPluginXQuery from 'prettier-plugin-xquery';

/**
 * @type {import('prettier').Config}
 */
const config = {
	useTabs: true,
	printWidth: 120,
	plugins: [prettierPluginXQuery],
};

export default config;

Configuration

API OptionCLI OptionDefaultDescription
printWidth--print-width80Same as in Prettier (see prettier docs).
tabWidth--tab-width2Same as in Prettier (see prettier docs).
singleQuote--single-quotefalseSame as in Prettier (see prettier docs).
useTabs--use-tabsfalseSame as in Prettier (see prettier docs).

Any of these can be added to your existing prettier configuration file. For example:

{
  "tabWidth": 4,
  "plugins": ["prettier-plugin-xquery"]
}

Or, they can be passed to prettier as arguments:

prettier --plugin=prettier-plugin-xquery --tab-width 4 --write '**/*.xq*'

Ignoring

A prettier-ignore comment marks code as ignored for formatting. Like this:

module namespace el = "http://www.elliat.nl";

declare function el:reverse (
  $a as xs:integer,
  $b as xs:integer,
  $c as xs:integer,
  $d as xs:integer
) {
  ($d, $c, $b, $a)
};

(: prettier-ignore :)
declare function el:swap (
  $a as xs:integer, $b as xs:integer,
  $c as xs:integer, $b as xs:integer
) {
  ($b, $a, $d, $c)
};

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

README badge

Show your rank in a README or on your website. The badge updates automatically.

Charts

Images: 30d · 1y · all time · 1600×900 dark

Adoption over time

prettier-plugin-xquery weekly downloads on npm, last 90 days: 534 weekly downloads as of Dec 5, 2026, +500% over 90 days.prettier-plugin-xqueryWeekly downloads on npm · Last 90 days534downloads / week+500% over 90 days0100200300400500600Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
prettier-plugin-xquery weekly downloads on npm, last 90 days: 534 weekly downloads as of Dec 5, 2026, +500% over 90 days.

7/30/90-day growth

prettier-plugin-xquery weekly downloads growth on npm: +22.8% over 7 days, +89.4% over 30 days, +500% over 90 days.prettier-plugin-xqueryWeekly downloads growth on npm534downloads / week now7-day growth+99 weekly downloads+22.8%30-day growth+252 weekly downloads+89.4%90-day growth+445 weekly downloads+500%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
prettier-plugin-xquery weekly downloads growth on npm: +22.8% over 7 days, +89.4% over 30 days, +500% over 90 days.

Ranking history

prettier-plugin-xquery npm ranking history: currently #2243 (by weekly downloads).prettier-plugin-xquerynpm ranking · by weekly downloads · Last 90 days#2243current rank#1500#1600#1700#1800#1900#2000#2100#2200#2300Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
prettier-plugin-xquery npm ranking history: currently #2243 (by weekly downloads).

Listing placement

All npm3,247 listings · 163 pages · 1,084 shown · page 113, #3 (overall #2,243)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins267 listings · 14 pages · page 3, #11 (overall #51)
Prettier plugins: every listing in weekly downloads order

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.

Each band is one page of 20. Weekly downloads on a linear 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.

Recent observations

Full history (170)
Recent weekly downloads observations for prettier-plugin-xquery
Date (UTC)Weekly downloadsChange vs. previous
534-25
559-1
560+44
516+26
490+56
434+28
406-29
435+20
415+25
390+10
3800
380-21
401-37
438—

Similar npm Prettier plugins plugins

All 20 prettier-plugin-xquery alternatives

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 Dec 6, 2026. See the methodology.