Skip to content
PluginStats

prettier-plugin-multiline weekly downloads statistics

By kj7lnw · npm · Prettier plugins

Prettier plugin for multiline formatting and safe sorting

View on npm Fresh · Dec 6, 2026

prettier-plugin-multiline has 8 recorded weekly downloads on npm, a decrease of 20.0% over the past 30 days, ranking #3171 of 3,247 tracked listings.

Weekly downloads
8
Official API · Dec 5, 2026
7-day growth
+14.3%
+1 weekly downloads
30-day growth
-20.0%
-2 weekly downloads
90-day growth
+14.3%
+1 weekly downloads
Rank
#3171
▼ 144 in 7 days

About prettier-plugin-multiline

Prettier Multiline Plugin

A Prettier plugin that formats imports, arrays, and objects on multiple lines to minimize merge conflicts in collaborative development environments.

npm version License: MIT

Why Multi-line Formatting Matters

The Problem: Merge Conflicts in Collaborative Development

In large projects with multiple developers working simultaneously, merge conflicts are a common pain point that slow down development and integration. One of the most frequent sources of these conflicts is single-line formatting of imports, arrays, and objects.

Consider this common scenario:

  1. Developer A adds a new import to a file:

    import { alpha, beta, delta, gamma } from 'module';
    
  2. Meanwhile, Developer B also adds a different import to the same line:

    import { alpha, beta, epsilon, gamma } from 'module';
    
  3. When merging these changes, a conflict occurs that must be manually resolved:

    <<<<<<< HEAD
    import { alpha, beta, delta, gamma } from 'module';
    =======
    import { alpha, beta, epsilon, gamma } from 'module';
    >>>>>>> feature-branch
    

These conflicts are:

  • Time-consuming: Each must be manually resolved
  • Error-prone: Easy to accidentally remove someone's import
  • Frequent: Happens constantly in active projects
The Solution: Multi-line Formatting

By formatting imports, arrays, and objects with one item per line, merge conflicts become both less frequent and easier to resolve:

import {
  alpha,
  beta,
  delta,
  gamma,
} from 'module';
Benefits:
  1. Reduced Conflict Frequency: Changes to different items won't conflict
  2. Clearer Diffs: Git diffs show exactly which item was added/removed
  3. Easier Resolution: When conflicts do occur, they're isolated to specific items
  4. Better Code Reviews: Reviewers can clearly see which items were modified
  5. Improved Maintainability: Easier to alphabetize or organize imports
Real-world Example
With single-line formatting:
- import { alpha, beta, gamma } from 'module';
+ import { alpha, beta, delta, gamma } from 'module';

If two developers add different items, this creates a merge conflict.

With multi-line formatting:
  import {
    alpha,
    beta,
+   delta,
    gamma,
  } from 'module';

Even if two developers add different items, Git can often auto-merge these changes without conflicts.

Installation

npm install --save-dev prettier-plugin-multiline

Usage

Configuration File

Add the plugin to your Prettier configuration:

{
  "plugins": ["prettier-plugin-multiline"],
  "multilineImports": true,
  "multilineArrays": true,
  "multilineObjects": true,
  "sortImports": true,
  "minItemsForMultiline": 2
}
Command Line

You can also use the plugin directly from the command line:

# Format with multiline imports
npx prettier --plugin=prettier-plugin-multiline --parser=typescript --multiline-imports file.ts

# Format with sorted imports
npx prettier --plugin=prettier-plugin-multiline --parser=typescript --sort-imports file.ts

# Format with both multiline and sorted imports
npx prettier --plugin=prettier-plugin-multiline --parser=typescript --multiline-imports --sort-imports file.ts

# Set minimum items for multiline formatting
npx prettier --plugin=prettier-plugin-multiline --parser=typescript --multiline-imports --min-items-for-multiline=2 file.ts

Configuration Options

OptionTypeDefaultDescription
multilineImportsbooleanfalseFormat imports on multiple lines
multilineArraysbooleanfalseFormat array literals on multiple lines
multilineObjectsbooleanfalseFormat object literals on multiple lines
sortImportsbooleanfalseSort import specifiers
minItemsForMultilinenumber1Minimum number of items to trigger multiline formatting
debugbooleanfalseEnable debug output for the plugin

Example Configuration

For optimal merge conflict reduction in large projects:

{
  "plugins": ["prettier-plugin-multiline"],
  "multilineImports": true,
  "multilineArrays": true,
  "multilineObjects": true,
  "minItemsForMultiline": 2
}

This configuration will format all imports, arrays, and objects with 2 or more items on multiple lines, significantly reducing merge conflicts in collaborative environments.

License

MIT

Description from the npm listing.

  • prettier
  • prettier-plugin
  • formatter
  • multiline
  • typescript
  • javascript

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-multiline weekly downloads on npm, last 90 days: 8 weekly downloads as of Dec 5, 2026, +14.3% over 90 days.prettier-plugin-multilineWeekly downloads on npm · Last 90 days8downloads / week+14.3% over 90 days024681012Sep 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-multiline weekly downloads on npm, last 90 days: 8 weekly downloads as of Dec 5, 2026, +14.3% over 90 days.

7/30/90-day growth

prettier-plugin-multiline weekly downloads growth on npm: +14.3% over 7 days, -20.0% over 30 days, +14.3% over 90 days.prettier-plugin-multilineWeekly downloads growth on npm8downloads / week now7-day growth+1 weekly downloads+14.3%30-day growth-2 weekly downloads-20.0%90-day growth+1 weekly downloads+14.3%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
prettier-plugin-multiline weekly downloads growth on npm: +14.3% over 7 days, -20.0% over 30 days, +14.3% over 90 days.

Ranking history

prettier-plugin-multiline npm ranking history: currently #3171 (by weekly downloads).prettier-plugin-multilinenpm ranking · by weekly downloads · Last 90 days#3171current rank#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
prettier-plugin-multiline npm ranking history: currently #3171 (by weekly downloads).

Listing placement

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

Listing placement

Prettier plugins267 listings · 14 pages · page 12, #20 (overall #240)
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-multiline
Date (UTC)Weekly downloadsChange vs. previous
8+1
7-4
11+1
10+4
60
60
6-1
7-1
80
80
8-1
9+1
80
8—

Similar npm Prettier plugins plugins

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