Skip to content
PluginStats

prettier-plugin-julia weekly downloads statistics

By pankgeorg · npm · Prettier plugins

Prettier plugin for Julia, using Julia's own parser (JuliaSyntax) compiled to WebAssembly; every format is checked to keep the program's meaning

View on npm Fresh · Dec 6, 2026

prettier-plugin-julia has 26 recorded weekly downloads on npm, a change of -10.3% over the past 7 days, ranking #2943 of 3,247 tracked listings.

Weekly downloads
26
Official API · Dec 5, 2026
7-day growth
-10.3%
-3 weekly downloads
30-day growth
—
Insufficient history
90-day growth
—
Insufficient history
Rank
#2943
▼ 220 in 7 days

About prettier-plugin-julia

prettier-plugin-julia

CI Release License: MIT

A Prettier 3 plugin that formats Julia code. It parses with Julia's own parser, JuliaSyntax as shipped with Julia 1.13, compiled to WebAssembly: no Julia installation needed, and the plugin reads code exactly as Julia does.

Every format is checked. The output is parsed again and compared with the input. Code whose formatting would change what the program means is kept exactly as written, and reported. The plugin never writes a program that parses differently from yours.

<!-- prettier-ignore -->
# before
function f(x::Int,y=2;k=3) where T
  z = x+y   # trailing
  if z>3 return z end
  [i^2 for i = 1:n if isodd(i)]
end

# after
function f(x::Int, y=2; k=3) where T
    z = x + y   # trailing
    if z > 3
        return z
    end
    [i^2 for i in 1:n if isodd(i)]
end

Install

Node ^22.23.3 or ^24.22.1, and Prettier 3.

npm install --save-dev prettier prettier-plugin-julia

Usage

.prettierrc:

{ "plugins": ["prettier-plugin-julia"] }
npx prettier --write "**/*.jl"   # format
npx prettier --check "**/*.jl"   # exit code 1 if a file would change (for CI)

Markdown files get their ```julia blocks formatted too (npx prettier --write "**/*.md").

docs/usage.md has the rest:

  • a Julia project without Node (a three-file setup);
  • a copy-paste GitHub Actions workflow that fails with a diff;
  • lint-staged, pre-commit and VS Code settings;
  • the Prettier API.

Style

4-space indent, 92 columns, close to Runic and JuliaFormatter:

  • spaces around binary operators except :, ^ and ::;
  • f(x; k=1): keyword arguments and defaults without spaces;
  • a list that doesn't fit goes one element per line, with a trailing comma;
  • module bodies are not indented;
  • at most one blank line in a row;
  • for i = … is written for i in ….

Strings, string macros, comments and multi-line matrices are kept as written. Details: docs/style.md.

OptionDefaultMeaning
printWidth92Line width.
tabWidth4Spaces per indentation level (useTabs for tabs).
juliaVerifytrueCheck every format and keep code as written where it would change meaning.
juliaReporttrueWarn on stderr for each region kept as written.

To leave code alone: # prettier-ignore before a statement, #! format: off … #! format: on around a region, or .prettierignore for whole files.

Safety

After printing, the plugin parses the output with JuliaSyntax and compares both trees in a strict normal form:

  • whitespace and comments are ignored; leaf text must match exactly;
  • node kinds and flags must match: infix vs prefix call, @m(x) vs @m x, mutable, triple-quoted strings;
  • comments must all survive, in order.

The only freedoms are layout ones: a; b on one line vs two, a trailing comma in a multi-line list (not in a one-element tuple, where it changes the meaning).

If the trees differ, the smallest differing node is printed exactly as written and the file is printed again (up to 30 rounds; after that, the whole file is left as it is). Each such region is reported:

[prettier-plugin-julia] warn: src/a.jl:12:5: kept `[x -y]` as written (formatting would change its meaning: …)

Input that JuliaSyntax rejects is reported as a syntax error, with its position, and left alone. A printer crash also leaves the file as it is.

What "same meaning" does not cover, as for any formatter that moves code between lines:

  • source locations: @__LINE__, stack traces, and macros that read __source__ see new line numbers;
  • statement grouping by ; at top level: a; b on one line is a single toplevel expression, two lines are two. Only code that loads files with include(mapexpr, …)/include_string(mapexpr, …) can tell the difference.

The printer is written so that the check rarely fires:

  • it only breaks lines where Julia reads a line break as whitespace or continuation, never inside a matrix row or between macro arguments;
  • it keeps - 2, [x -y], """doc""" f and the like as written;
  • it prints anything it has no rule for token by token.

On the corpus below no region needed protecting; the tests inject printer bugs to show that they are caught.

Results and comparison

Corpus: 25,174 unique Julia files (229 MB) from Julia 1.11/1.13 base, stdlib and tests, and the packages of several Julia depots, deduplicated by content. Arm64 Linux, Node 22.

Formatted and verified25,163 (3,267 already formatted)
Rejected by JuliaSyntax (not valid Julia 1.13)11
Regions kept as written / whole files kept / crashes0 / 0 / 0
Not idempotent (formatting twice ≠ once)0

Description from the npm listing.

  • prettier
  • prettier-plugin
  • julia
  • julialang
  • formatter
  • code-formatter
  • juliasyntax
  • webassembly

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-julia weekly downloads on npm, last 90 days: 26 weekly downloads as of Dec 5, 2026.prettier-plugin-juliaWeekly downloads on npm · Last 90 days26downloads / week050100150200250300350Sep 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-julia weekly downloads on npm, last 90 days: 26 weekly downloads as of Dec 5, 2026.

7/30/90-day growth

prettier-plugin-julia weekly downloads growth on npm: -10.3% over 7 days, 30-day growth unavailable, 90-day growth unavailable.prettier-plugin-juliaWeekly downloads growth on npm26downloads / week now7-day growth-3 weekly downloads-10.3%30-day growth+26 weekly downloadsInsufficient history90-day growth+26 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
prettier-plugin-julia weekly downloads growth on npm: -10.3% over 7 days, 30-day growth unavailable, 90-day growth unavailable.

Ranking history

prettier-plugin-julia npm ranking history: currently #2943 (by weekly downloads).prettier-plugin-julianpm ranking · by weekly downloads · Last 90 days#2943current rank#1800#2000#2200#2400#2600#2800#3000Sep 7Sep 22Oct 7Oct 22Nov 6Nov 21Dec 6rankNov 24, 2026 – Dec 6, 2026 · 13 observations · Updated Dec 5, 2026pluginstats.com
prettier-plugin-julia npm ranking history: currently #2943 (by weekly downloads).

Listing placement

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

Listing placement

Prettier plugins267 listings · 14 pages · page 9, #6 (overall #166)
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 (128)
Recent weekly downloads observations for prettier-plugin-julia
Date (UTC)Weekly downloadsChange vs. previous
26+10
16-7
230
23+1
22-4
26-2
28-1
29-1
30+9
21-6
270
27-13
40-284
324—

Similar npm Prettier plugins plugins

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