Skip to content
PluginStats

prettier-plugin-tsql weekly downloads statistics

By schallm (2 listings) · npm · Prettier plugins

Prettier plugin for T-SQL (Microsoft SQL Server) using the official ScriptDom parser

View on npm Fresh · Dec 6, 2026

prettier-plugin-tsql has 214 recorded weekly downloads on npm, an increase of 320% over the past 30 days, ranking #2474 of 3,247 tracked listings.

Weekly downloads
214
Official API · Dec 5, 2026
7-day growth
-9.7%
-23 weekly downloads
30-day growth
+320%
+163 weekly downloads
90-day growth
+2278%
+205 weekly downloads
Rank
#2474
▼ 134 in 7 days

About prettier-plugin-tsql

prettier-plugin-tsql

Beta — covers the vast majority of T-SQL; a number of less-common statements (and rarer forms of some common ones) are kept as their original source text (see Pending implementation). Breaking changes possible before 1.0.

A Prettier plugin that formats T-SQL (SQL Server) using Microsoft's official Microsoft.SqlServer.TransactSql.ScriptDom parser — the same parser SQL Server itself uses. Supports SQL Server syntax up to and including SQL Server 2025 (via TSql180Parser).

Requires .NET 8+ Runtime to be installed on your machine (the SDK is not needed).

Features

Parses T-SQL via the official ScriptDom library (no hand-rolled grammar). Configurable keyword casing, layout density, and comma style. Preserves -- and /* */ comments — trailing, leading, inside procedure bodies, between parameters and AS — and never drops one. The test suite checks that formatting never changes what a statement means: every fixture's ScriptDom syntax tree must be the same before and after. Emits go batch separators where required and keeps a repeat count (GO 5); a script made only of comments is kept as written. Integrates with editor extensions that support Prettier (VS Code, etc.).

DML

  • SELECT, INSERT, UPDATE, DELETE
  • MERGE INTO … USING … ON … WHEN MATCHED/NOT MATCHED
  • OUTPUT / OUTPUT INTO on INSERT, UPDATE, DELETE, and MERGE (including $action, inserted.*, deleted.*); MERGE … INSERT DEFAULT VALUES
  • OPTION (…) query hints on SELECT, INSERT, UPDATE, DELETE, and MERGE, including the distributed-query hints FORCE DISTRIBUTED PLAN, FORCE SINGLE NODE PLAN and FOR TIMESTAMP AS OF '…'
  • UPDATE / DELETE … WHERE CURRENT OF [GLOBAL] cursor
  • CTEs, UNION/UNION ALL, subqueries, derived tables (with column lists: (SELECT …) AS s (a, b))
  • SELECT … INTO new_table [ON filegroup]
  • EXISTS / NOT EXISTS, GROUP BY / HAVING
  • CASE expressions (simple and searched), IN/NOT IN (value lists and subqueries), ANY/ALL subquery predicates
  • Inline VALUES(...) derived tables in FROM
  • TOP (n), TOP (n) PERCENT, TOP (n) WITH TIES
  • PIVOT / UNPIVOT
  • FOR XML (AUTO, PATH, RAW, EXPLICIT, XMLSCHEMA, ELEMENTS, ROOT, TYPE, etc.) and FOR JSON (AUTO, PATH, ROOT, INCLUDE_NULL_VALUES, WITHOUT_ARRAY_WRAPPER)
  • TABLESAMPLE [SYSTEM] (n PERCENT|ROWS) [REPEATABLE(seed)]
  • Temporal table queries — FOR SYSTEM_TIME AS OF, FROM … TO, BETWEEN … AND, CONTAINED IN, ALL
  • Joins: INNER, LEFT, RIGHT, FULL OUTER, CROSS JOIN, CROSS APPLY, OUTER APPLY; multiple joins, multi-predicate ON, self-joins, parenthesized joins, derived table joins
  • Table-valued functions (TVFs) in FROM clauses; table hints (WITH (NOLOCK), etc.)
  • Window functions with OVER clause — PARTITION BY, ORDER BY, full frame support (ROWS/RANGE BETWEEN … AND …, UNBOUNDED PRECEDING/FOLLOWING, CURRENT ROW); IGNORE NULLS/RESPECT NULLS; named window references; named WINDOW clause
  • Ordered set aggregates: WITHIN GROUP (ORDER BY …) for STRING_AGG, PERCENTILE_CONT/PERCENTILE_DISC, etc.
  • COLLATE after any expression — columns, literals, variables, function calls, CAST, CASE, subqueries
  • ODBC escapes: {fn UCASE(…)} function calls and {d '…'} / {ts '…'} literals
  • Expression functions: CAST, CONVERT, TRY_CAST, TRY_CONVERT (with full data type including length/precision), IIF, COALESCE, NULLIF, AT TIME ZONE, IS [NOT] DISTINCT FROM, TRIM(LEADING|TRAILING|BOTH …), TRIM(chars FROM str), PARSE, TRY_PARSE
  • Sequence expressions: NEXT VALUE FOR sequence [OVER (…)]
  • JSON functions: JSON_OBJECT(key: value, …), JSON_ARRAY(…), JSON_ARRAYAGG(… ORDER BY …) with ABSENT|NULL ON NULL
  • Full-text predicates: CONTAINS/FREETEXT (single column, multi-column, wildcard, LANGUAGE); CONTAINSTABLE/FREETEXTTABLE as join sources
  • Rowset functions: OPENJSON and OPENXML with WITH schema declarations; OPENJSON row-path and AS JSON columns; OPENROWSET provider and OPENROWSET(BULK …) forms
  • Built-in functions formatted as standard function calls: GREATEST, LEAST, DATE_BUCKET, DATETRUNC, GENERATE_SERIES, LEFT_SHIFT, RIGHT_SHIFT, BIT_COUNT, GET_BIT, SET_BIT, APPROX_PERCENTILE_CONT, APPROX_PERCENTILE_DISC, JSON_PATH_EXISTS, STRING_SPLIT, ISJSON, LTRIM, RTRIM

DDL…

Description from the npm listing.

  • prettier
  • prettier-plugin
  • sql
  • tsql
  • t-sql
  • sqlserver
  • sql-server
  • mssql
  • formatter

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-tsql weekly downloads on npm, last 90 days: 214 weekly downloads as of Dec 5, 2026, +2278% over 90 days.prettier-plugin-tsqlWeekly downloads on npm · Last 90 days214downloads / week+2278% over 90 days02004006008001KSep 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-tsql weekly downloads on npm, last 90 days: 214 weekly downloads as of Dec 5, 2026, +2278% over 90 days.

7/30/90-day growth

prettier-plugin-tsql weekly downloads growth on npm: -9.7% over 7 days, +320% over 30 days, +2278% over 90 days.prettier-plugin-tsqlWeekly downloads growth on npm214downloads / week now7-day growth-23 weekly downloads-9.7%30-day growth+163 weekly downloads+320%90-day growth+205 weekly downloads+2278%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
prettier-plugin-tsql weekly downloads growth on npm: -9.7% over 7 days, +320% over 30 days, +2278% over 90 days.

Ranking history

prettier-plugin-tsql npm ranking history: currently #2474 (by weekly downloads).prettier-plugin-tsqlnpm ranking · by weekly downloads · Last 90 days#2474current rank#1400#1600#1800#2000#2200#2400#2600Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankOct 18, 2026 – Dec 6, 2026 · 44 observations · Updated Dec 5, 2026pluginstats.com
prettier-plugin-tsql npm ranking history: currently #2474 (by weekly downloads).

Listing placement

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

Listing placement

Prettier plugins267 listings · 14 pages · page 4, #10 (overall #70)
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-tsql
Date (UTC)Weekly downloadsChange vs. previous
214-125
339+6
333+83
250+2
248+21
227-19
246+9
237+181
56-1
57-1
580
58-4
62+7
55—

Similar npm Prettier plugins plugins

All 20 prettier-plugin-tsql 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-tsql. First seen Oct 16, 2026; last successful collection Dec 6, 2026. See the methodology.