Skip to content
PluginStats

prettier-plugin-object-multiline weekly downloads statistics

By alexkates · npm · Prettier plugins

A Prettier plugin that enforces one property per line in all object literals

View on npm Fresh · Oct 18, 2026

prettier-plugin-object-multiline has 4 recorded weekly downloads on npm, a decrease of 20.0% over the past 30 days, ranking #2213 of 2,322 tracked listings.

Weekly downloads
4
Official API · Oct 18, 2026
7-day growth
—
Insufficient history
30-day growth
-20.0%
-1 weekly downloads
90-day growth
—
Insufficient history
Rank
#2213
Among tracked npm listings

About prettier-plugin-object-multiline

prettier-plugin-object-multiline

npm version Build Status License: MIT PRs Welcome

A Prettier plugin that enforces one property per line in all object literals, regardless of the printWidth setting.

🚀 Installation

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

📝 Usage

Once installed, Prettier will automatically use this plugin. No configuration needed!

Example

Input:

const shortObject = {
  a: 1,
  b: 2,
  c: 3,
};
const longObject = {
  propertyOne: "value",
  propertyTwo: "another value",
  propertyThree: "yet another value",
};

Output:

const shortObject = {
  a: 1,
  b: 2,
  c: 3,
};
const longObject = {
  propertyOne: "value",
  propertyTwo: "another value",
  propertyThree: "yet another value",
};
Nested Objects

The plugin also formats nested objects correctly:

// Input
const nestedObject = {
  a: 1,
  b: {
    c: 2,
    d: 3,
  },
  e: 4,
};

// Output with this plugin
const nestedObject = {
  a: 1,
  b: {
    c: 2,
    d: 3,
  },
  e: 4,
};

// Default Prettier output (without this plugin) might be:
// const nestedObject = { a: 1, b: { c: 2, d: 3 }, e: 4 };
// or
// const nestedObject = {
//   a: 1, b: { c: 2, d: 3 }, e: 4
// };
// depending on printWidth and object size
Complex Example

The plugin handles complex, deeply nested objects with consistency:

// Input
const config = {
  server: {
    port: 3000,
    host: "localhost",
    options: {
      timeout: 1000,
      secure: true,
    },
  },
  logging: {
    level: "info",
    format: "json",
  },
};

// Output with this plugin
const config = {
  server: {
    port: 3000,
    host: "localhost",
    options: {
      timeout: 1000,
      secure: true,
    },
  },
  logging: {
    level: "info",
    format: "json",
  },
};

⚙️ How It Works

This plugin overrides the default object expression printer in Prettier to always format objects with one property per line, regardless of the object's length or the printWidth setting.

It uses Prettier's own babel and estree plugins as a foundation and extends them to modify the object expression formatting behavior.

Why Use This Plugin?

  • Consistency: Ensures all object properties are formatted in the same way, regardless of object size
  • Readability: Makes objects easier to read, with each property on its own line
  • Cleaner Git Diffs: When objects change, Git diffs are cleaner with one property per line
  • Simplified Editing: Makes it easier to add, remove, or reorder properties
  • Zero Configuration: Works out of the box with no additional setup

Compatibility

This plugin:

  • Requires Prettier v3.0.0 or newer
  • Is fully compatible with ES Modules
  • Requires Node.js 18.0.0 or newer
  • Adds trailing commas to all object properties

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

For more detailed information, please see the CONTRIBUTING.md file.

Testing

This plugin uses Node.js built-in test runner. To run the tests:

npm test

License

MIT

Description from the npm listing.

  • prettier-plugin
  • object
  • multiline
  • formatter
  • code-style

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-object-multiline weekly downloads on npm, last 90 days: 4 weekly downloads as of Oct 18, 2026.prettier-plugin-object-multilineWeekly downloads on npm · Last 90 days4downloads / week01234567Jul 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-object-multiline weekly downloads on npm, last 90 days: 4 weekly downloads as of Oct 18, 2026.

7/30/90-day growth

prettier-plugin-object-multiline weekly downloads growth on npm: 7-day growth unavailable, -20.0% over 30 days, 90-day growth unavailable.prettier-plugin-object-multilineWeekly downloads growth on npm4downloads / week now7-day growth+4 weekly downloadsInsufficient history30-day growth-1 weekly downloads-20.0%90-day growth+4 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
prettier-plugin-object-multiline weekly downloads growth on npm: 7-day growth unavailable, -20.0% over 30 days, 90-day growth unavailable.

Ranking history

prettier-plugin-object-multiline npm ranking history: currently #2213 (by weekly downloads).prettier-plugin-object-multilinenpm ranking · by weekly downloads · Last 90 days#2213current rank#2210#2212#2214#2216#2218#2220Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
prettier-plugin-object-multiline npm ranking history: currently #2213 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,161 shown · page 111, #17 (overall #2,217)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins244 listings · 13 pages · page 10, #1 (overall #181)
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-object-multiline
Date (UTC)Weekly downloadsChange vs. previous
4+3
10
1+1
00
00
00
00
00
00
0-1
10
10
10
1—

Similar npm Prettier plugins plugins

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