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 · Dec 6, 2026

prettier-plugin-object-multiline has 9 recorded weekly downloads on npm, an increase of 125% over the past 30 days, ranking #3150 of 3,247 tracked listings.

Weekly downloads
9
Official API · Dec 5, 2026
7-day growth
+200%
+6 weekly downloads
30-day growth
+125%
+5 weekly downloads
90-day growth
+28.6%
+2 weekly downloads
Rank
#3150
▼ 1 in 7 days

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: 9 weekly downloads as of Dec 5, 2026, +28.6% over 90 days.prettier-plugin-object-multilineWeekly downloads on npm · Last 90 days9downloads / week+28.6% over 90 days0246810Sep 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-object-multiline weekly downloads on npm, last 90 days: 9 weekly downloads as of Dec 5, 2026, +28.6% over 90 days.

7/30/90-day growth

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

Ranking history

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

Listing placement

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

Listing placement

Prettier plugins267 listings · 14 pages · page 12, #12 (overall #232)
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-object-multiline
Date (UTC)Weekly downloadsChange vs. previous
90
9-1
10+5
50
5+3
20
2-1
30
3-2
50
5-1
60
60
6—

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 Dec 6, 2026. See the methodology.