Skip to content
JS
Package

prettier-sql

Format whitespace in a SQL query to make it more readable

v5.1.1, 9 Apr 2022MITESM + CommonJSTypes: BundledLinting and formatting
$ npm install prettier-sql

Key numbers

As of 25 Sept 2026
Weekly downloads
4.1k
+378% over 12 months
Gzip bundle size
-
No Bundlephobia data
Dependencies
1
Direct, from package.json
Last release
4 years ago
v5.1.1
GitHub stars
21
5 forks
Open issues / PRs
14 / 3
Contributors
-
Commits, last 52 weeks
0

Downloads

Last week 2026-09-15 to 2026-09-21
02.5k5k7.5k10kSept 2025Mar 2026Sept 2026High 8.6k (18 Aug 2026)Low 762 (3 Feb 2026)
Weekly npm downloads, one point per week, weeks starting 23 Sept 2025 to 15 Sept 2026. The y axis starts at zero.

4,105 downloads last week, 27,647 in the last month. The 12-month change of +378% compares the average of the last 4 weeks with the first 4 weeks of the series.

Releases, last 12 months
-
Latest version
5.1.1, 9 Apr 20224 years ago
First published
-
Last push to GitHub
6 Jul 20221,541 days before the snapshot
Repository archived
Yes
Open issues
14
Open pull requests
3
Commits, last 52 weeks
0
Dependents on npm
0

Major versions

-

Recent releases

-

Module format
ESM + CommonJSFrom package.json type, main and exports fields
TypeScript types
Bundled
Node.js engine range
Not declared
Runtimes
-
Unpacked size (npm)
2.3 MB
Dependencies (1)
argparse
npm install prettier-sql
  • jsDelivrhttps://cdn.jsdelivr.net/npm/prettier-sql@5.1.1/
  • unpkghttps://unpkg.com/prettier-sql@5.1.1/
  • esm.shhttps://esm.sh/prettier-sql@5.1.1
PackageWeekly downloadsGzipLast releaseModuleComparison
sql-formatter3.1m-1 day agoESM + CommonJS-
squawk-cli400.1k-1 day ago--
eslint-plugin-sql14.1k-8 months agoESM only-
eslint-plugin-drizzle176.1k-2 years agoCommonJS-
Sources: npm registry, npm downloads API, GitHub API. Data fetched 25 Sept 2026.

Indexability: Not indexed (discovery only): downloads_week 4105 < 10000.