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 · Oct 18, 2026

prettier-plugin-tsql has 377 recorded weekly downloads on npm, an increase of 1350% over the past 30 days, ranking #1594 of 2,322 tracked listings.

Weekly downloads
377
Official API · Oct 18, 2026
7-day growth
+508%
+315 weekly downloads
30-day growth
+1350%
+351 weekly downloads
90-day growth
+113%
+200 weekly downloads
Rank
#1594
Among tracked npm listings

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: 377 weekly downloads as of Oct 18, 2026, +113% over 90 days.prettier-plugin-tsqlWeekly downloads on npm · Last 90 days377downloads / week+113% over 90 days02004006008001KJul 20Aug 4Aug 19Sep 3Sep 18Oct 3Oct 18downloads / weekobservedarchived (Internet Archive)no observationsJul 22, 2026 – Oct 18, 2026 · 89 observations · Updated Oc…pluginstats.com
prettier-plugin-tsql weekly downloads on npm, last 90 days: 377 weekly downloads as of Oct 18, 2026, +113% over 90 days.

7/30/90-day growth

prettier-plugin-tsql weekly downloads growth on npm: +508% over 7 days, +1350% over 30 days, +113% over 90 days.prettier-plugin-tsqlWeekly downloads growth on npm377downloads / week now7-day growth+315 weekly downloads+508%30-day growth+351 weekly downloads+1350%90-day growth+200 weekly downloads+113%Growth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
prettier-plugin-tsql weekly downloads growth on npm: +508% over 7 days, +1350% over 30 days, +113% over 90 days.

Ranking history

prettier-plugin-tsql npm ranking history: currently #1594 (by weekly downloads).prettier-plugin-tsqlnpm ranking · by weekly downloads · Last 90 days#1594current rank#1530#1540#1550#1560#1570#1580#1590#1600Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
prettier-plugin-tsql npm ranking history: currently #1594 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 80, #18 (overall #1,598)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins244 listings · 13 pages · page 3, #2 (overall #42)
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 (122)
Recent weekly downloads observations for prettier-plugin-tsql
Date (UTC)Weekly downloadsChange vs. previous
377+49
328-7
335+139
196-5
201-15
2160
216+154
62-155
217-16
233-161
394-3
397+9
388-16
404—

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 Oct 20, 2026. See the methodology.