Skip to content
PluginStats

prettier-plugin-remove-duplicate-json-keys weekly downloads statistics

By Dearest · npm · Prettier plugins

A Prettier plugin that removes duplicate keys in JSON files and maintains proper indentation

View on npm Fresh · Oct 18, 2026

prettier-plugin-remove-duplicate-json-keys has 5 recorded weekly downloads on npm, a decrease of 28.6% over the past 30 days, ranking #2176 of 2,322 tracked listings.

Weekly downloads
5
Official API · Oct 18, 2026
7-day growth
—
Insufficient history
30-day growth
-28.6%
-2 weekly downloads
90-day growth
—
Insufficient history
Rank
#2176
Among tracked npm listings

About prettier-plugin-remove-duplicate-json-keys

prettier-plugin-remove-duplicate-json-keys

A Prettier plugin that removes duplicate keys in JSON files and maintains proper indentation. When duplicate keys are found, the plugin keeps the last occurrence of the key-value pair.

Features

  • Removes duplicate keys in JSON files
  • Keeps the last occurrence of duplicate keys
  • Maintains proper indentation
  • Sorts keys alphabetically
  • Works recursively on nested objects
  • Preserves arrays and their contents

Installation

npm install --save-dev prettier-plugin-remove-duplicate-json-keys

or

yarn add --dev prettier-plugin-remove-duplicate-json-keys

Usage

The plugin will be automatically picked up by Prettier. Just run Prettier as usual:

prettier --write "**/*.json"
Example

Input:

{
  "name": "John",
  "age": 30,
  "name": "Jane",
  "nested": {
    "a": 1,
    "b": 2,
    "a": 3
  }
}

Output:

{
  "age": 30,
  "name": "Jane",
  "nested": {
    "a": 3,
    "b": 2
  }
}

Configuration

The plugin supports the following options:

enableSortJSON

Type: boolean Default: true

Controls whether to sort JSON object keys lexically. When enabled, all object keys will be sorted in alphabetical order. When disabled, the original order of keys will be preserved (except for duplicate keys, where the last occurrence is kept).

Example configuration in .prettierrc:

{
  "enableSortJSON": false
}

Or via CLI:

prettier --write --enable-sort-json=false "**/*.json"

The plugin also respects Prettier's built-in options like tabWidth.

License

MIT

Description from the npm listing.

  • prettier
  • prettier-plugin
  • json
  • duplicate
  • keys
  • formatter
  • json-formatter

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-remove-duplicate-json-keys weekly downloads on npm, last 90 days: 5 weekly downloads as of Oct 18, 2026.prettier-plugin-remove-duplicate-json-…Weekly downloads on npm · Last 90 days5downloads / week02468Jul 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-remove-duplicate-json-keys weekly downloads on npm, last 90 days: 5 weekly downloads as of Oct 18, 2026.

7/30/90-day growth

prettier-plugin-remove-duplicate-json-keys weekly downloads growth on npm: 7-day growth unavailable, -28.6% over 30 days, 90-day growth unavailable.prettier-plugin-remove-duplicate-json-…Weekly downloads growth on npm5downloads / week now7-day growth+5 weekly downloadsInsufficient history30-day growth-2 weekly downloads-28.6%90-day growth+5 weekly downloadsInsufficient historyGrowth vs. nearest observation to each baseline date · Updated Oct 18, 2026pluginstats.com
prettier-plugin-remove-duplicate-json-keys weekly downloads growth on npm: 7-day growth unavailable, -28.6% over 30 days, 90-day growth unavailable.

Ranking history

prettier-plugin-remove-duplicate-json-keys npm ranking history: currently #2176 (by weekly downloads).prettier-plugin-remove-duplicate-json-…npm ranking · by weekly downloads · Last 90 days#2176current rank#2170#2180#2190#2200#2210#2220Jul 22Aug 6Aug 21Sep 5Sep 20Oct 5Oct 20rankOct 18, 2026 – Oct 20, 2026 · 3 observations · Updated Oct 18, 2026pluginstats.com
prettier-plugin-remove-duplicate-json-keys npm ranking history: currently #2176 (by weekly downloads).

Listing placement

All npm2,320 listings · 116 pages · 1,162 shown · page 109, #20 (overall #2,180)
All npm: every listing in weekly downloads order

Listing placement

Prettier plugins244 listings · 13 pages · page 9, #7 (overall #167)
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-remove-duplicate-json-keys
Date (UTC)Weekly downloadsChange vs. previous
5+4
10
1+1
00
00
00
00
00
00
0-1
10
10
10
1—

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-remove-duplicate-json-keys. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.