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 17, 2026

prettier-plugin-tsql has 328 recorded weekly downloads on npm, an increase of 1115% over the past 30 days.

It ranks #1544 of 2,256 tracked npm listings by weekly downloads.

Over 90 days, weekly downloads changed by +85.3%.

PluginStats has 121 daily observations since Jun 19, 2026; the latest is from Oct 17, 2026.

Weekly downloads
328
Official API · Oct 17, 2026
7-day growth
+51.2%
+111 weekly downloads
30-day growth
+1115%
+301 weekly downloads
90-day growth
+85.3%
+151 weekly downloads
Rank
#1544
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

Where prettier-plugin-tsql 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.

All npm2,256 listings · 113 pages · page 78, #5 (overall #1545)
All npm: every listing in weekly downloads order
PNG SVG
Prettier plugins244 listings · 13 pages · page 2, #18 (overall #38)
Prettier plugins: every listing in weekly downloads order
PNG SVG

Charts

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

Adoption over time

prettier-plugin-tsql weekly downloads on npm, last 90 days: 328 weekly downloads as of Oct 17, 2026, +85.3% over 90 days.prettier-plugin-tsqlWeekly downloads on npm · Last 90 days328downloads / week+85.3% over 90 days02004006008001KJul 19Aug 3Aug 18Sep 2Sep 17Oct 2Oct 17downloads / weekobservedarchived (Internet Archive)no observationsJul 21, 2026 – Oct 17, 2026 · 89 observations · Updated Oc…pluginstats.com
prettier-plugin-tsql weekly downloads on npm, last 90 days: 328 weekly downloads as of Oct 17, 2026, +85.3% over 90 days.
PNG SVG

7/30/90-day growth

prettier-plugin-tsql weekly downloads growth on npm: +51.2% over 7 days, +1115% over 30 days, +85.3% over 90 days.prettier-plugin-tsqlWeekly downloads growth on npm328downloads / week now7-day growth+111 weekly downloads+51.2%30-day growth+301 weekly downloads+1115%90-day growth+151 weekly downloads+85.3%Growth vs. nearest observation to each baseline date · Updated Oct 17, 2026pluginstats.com
prettier-plugin-tsql weekly downloads growth on npm: +51.2% over 7 days, +1115% over 30 days, +85.3% over 90 days.
PNG SVG

Ranking history

prettier-plugin-tsql npm ranking history: currently #1544 (by weekly downloads).prettier-plugin-tsqlnpm ranking · by weekly downloads · Last 90 days#1544current rank#1538#1540#1542#1544#1546Jul 21Aug 5Aug 20Sep 4Sep 19Oct 4Oct 19rankOct 18, 2026 – Oct 19, 2026 · 2 observations · Updated Oct 17, 2026pluginstats.com
prettier-plugin-tsql npm ranking history: currently #1544 (by weekly downloads).
PNG SVG

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)
Recent weekly downloads observations for prettier-plugin-tsql
Date (UTC)Weekly downloadsChange vs. previous
328-7
335+139
196-5
201-15
2160
216+154
62-155
217-16
233-161
394-3
397+9
388-16
404-47
451—

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-tsql. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.