Skip to content
PluginStats

driftjs-prettier-plugin weekly downloads statistics

By hrutavmodha (2 listings) · npm · Prettier plugins

Prettier plugin for formatting DriftJS (.drift) Single File Components.

View on npm Fresh · Dec 6, 2026

driftjs-prettier-plugin has 14 recorded weekly downloads on npm, unchanged over the past 30 days, ranking #3060 of 3,247 tracked listings.

Weekly downloads
14
Official API · Dec 5, 2026
7-day growth
+55.6%
+5 weekly downloads
30-day growth
0.0%
0 weekly downloads
90-day growth
—
Insufficient history
Rank
#3060
▼ 83 in 7 days

About driftjs-prettier-plugin

driftjs-prettier-plugin

Official Prettier plugin for formatting DriftJS Single File Components (.drift).

Formats <script> blocks (via Prettier's Babel parser), <style> blocks (via Prettier's CSS parser), and DriftJS template markup with all directives (@if, @else if, @else, @for, @switch, @case, @default, @async, @fallback, @catch), dynamic interpolations, and attributes.


Features

  • Drift SFC Formatting: Seamlessly parses and formats .drift Single File Components.
  • Embedded Languages: Formats <script> logic with Babel and <style> sheets with CSS parsers.
  • Directives Support: Formats all Drift template directives with clean block structures and indentation.
  • Dynamic Bindings: Formats dynamic interpolations {expr} and attribute bindings onclick={handler}.
  • Self-Closing Void Elements: Normalizes HTML void elements (<input />, <img />, <hr />, etc.).
  • Prettier v3 Compatible: Built natively for Prettier v3 plugin architecture.

Installation

pnpm add -D driftjs-prettier-plugin prettier

Configuration

Add driftjs-prettier-plugin to your Prettier configuration file:

.prettierrc (JSON)
{
  "plugins": ["driftjs-prettier-plugin"],
  "tabWidth": 2,
  "singleQuote": true,
  "driftScriptIndent": true,
  "driftStyleIndent": true,
  "driftSelfCloseVoid": true
}
prettier.config.js (ESM)
export default {
  plugins: ['driftjs-prettier-plugin'],
  tabWidth: 2,
  printWidth: 80,
  driftScriptIndent: true,
  driftStyleIndent: true,
  driftSelfCloseVoid: true,
};

Options

OptionTypeDefaultDescription
driftScriptIndentbooleantrueWhether to indent code inside <script> blocks.
driftStyleIndentbooleantrueWhether to indent code inside <style> blocks.
driftSelfCloseVoidbooleantrueWhether to self-close void HTML tags (e.g. <input /> vs <input>).

CLI Usage

# Check formatting
pnpm prettier --check "**/*.drift"

# Format files in-place
pnpm prettier --write "**/*.drift"

License

MIT (c) 2026 Hrutav Modha

Description from the npm listing.

  • driftjs
  • prettier
  • prettier-plugin
  • formatter
  • sfc

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

driftjs-prettier-plugin weekly downloads on npm, last 90 days: 14 weekly downloads as of Dec 5, 2026.driftjs-prettier-pluginWeekly downloads on npm · Last 90 days14downloads / week050100150200250300350Sep 6Sep 21Oct 6Oct 21Nov 5Nov 20Dec 5downloads / weekobservedarchived (Internet Archive)no observationsSep 7, 2026 – Dec 5, 2026 · 90 observations · Updated Dec …pluginstats.com
driftjs-prettier-plugin weekly downloads on npm, last 90 days: 14 weekly downloads as of Dec 5, 2026.

7/30/90-day growth

driftjs-prettier-plugin weekly downloads growth on npm: +55.6% over 7 days, 0.0% over 30 days, 90-day growth unavailable.driftjs-prettier-pluginWeekly downloads growth on npm14downloads / week now7-day growth+5 weekly downloads+55.6%30-day growth+0 weekly downloads0.0%90-day growth+14 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
driftjs-prettier-plugin weekly downloads growth on npm: +55.6% over 7 days, 0.0% over 30 days, 90-day growth unavailable.

Ranking history

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

Listing placement

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

Listing placement

Prettier plugins267 listings · 14 pages · page 10, #19 (overall #199)
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 driftjs-prettier-plugin
Date (UTC)Weekly downloadsChange vs. previous
14+8
6-2
8+4
4-1
50
5-3
8-1
9-4
13+1
12-2
14+1
130
13+2
11—

Similar npm Prettier plugins plugins

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