prettier-plugin-sql weekly downloads statistics
By un-ts (5 listings) · npm · Prettier plugins
An opinionated sql formatter plugin for Prettier
prettier-plugin-sql has 197,897 recorded weekly downloads on npm, a decrease of 45.6% over the past 30 days.
It ranks #375 of 2,251 tracked npm listings by weekly downloads.
Over 90 days, weekly downloads changed by -21.1%.
PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.
About prettier-plugin-sql
prettier-plugin-sql
An opinionated sql formatter plugin for [Prettier][]
Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing, taking various rules into account.
This plugin adds support for a lot of sql files through [sql-formatter][] or [node-sql-parser][].
Notice
This plugin is still under development, its printer just wraps [sql-formatter][] or [node-sql-parser][]'s default printer. Of course it should just work, but may not match [prettier][]'s format sometimes.
Requirements
prettier-plugin-sql is an evergreen module. 🌲 This module requires an LTS Node version (v14.18.0+).
Install
Using npm:
Usage
Once installed, Prettier plugins must be added to .prettierrc:
Then:
SQL-in-JS with prettier-plugin-embed
Format SQL-in-JS tagged template literals by installing prettier-plugin-embed and configuring as follows:
prettier.config.mjs
Before formatting:
After formatting:
Parser Options
More details on [sql-formatter][] and [node-sql-parser][].
Sponsors and Backers
Sponsors
| 1stG | RxTS | UnTS |
| | | |
Backers
| 1stG | RxTS | UnTS |
| | | |
Changelog
Detailed changes for each release are documented in CHANGELOG.md.
License
[MIT][] © [JounQin][]@[1stG.me][]
Description from the npm listing.
- sql
- big-query
- db2
- flink-sql
- hive
- maria-db
- mysql
- n1ql
- pl-sql
- postgre-sql
- redshift
- transact-sql
- tsql
- plugin
- prettier
- prettier-plugin
Where prettier-plugin-sql 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-sql. First seen Oct 16, 2026; last successful collection Oct 18, 2026. See the methodology.