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

prettier-plugin-remove-duplicate-json-keys has 11 recorded weekly downloads on npm, an increase of 37.5% over the past 30 days, ranking #3121 of 3,247 tracked listings.

Weekly downloads
11
Official API · Dec 5, 2026
7-day growth
+175%
+7 weekly downloads
30-day growth
+37.5%
+3 weekly downloads
90-day growth
+83.3%
+5 weekly downloads
Rank
#3121
▲ 16 in 7 days

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: 11 weekly downloads as of Dec 5, 2026, +83.3% over 90 days.prettier-plugin-remove-duplicate-json-…Weekly downloads on npm · Last 90 days11downloads / week+83.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-remove-duplicate-json-keys weekly downloads on npm, last 90 days: 11 weekly downloads as of Dec 5, 2026, +83.3% over 90 days.

7/30/90-day growth

prettier-plugin-remove-duplicate-json-keys weekly downloads growth on npm: +175% over 7 days, +37.5% over 30 days, +83.3% over 90 days.prettier-plugin-remove-duplicate-json-…Weekly downloads growth on npm11downloads / week now7-day growth+7 weekly downloads+175%30-day growth+3 weekly downloads+37.5%90-day growth+5 weekly downloads+83.3%Growth vs. nearest observation to each baseline date · Updated Dec 5, 2026pluginstats.com
prettier-plugin-remove-duplicate-json-keys weekly downloads growth on npm: +175% over 7 days, +37.5% over 30 days, +83.3% over 90 days.

Ranking history

prettier-plugin-remove-duplicate-json-keys npm ranking history: currently #3121 (by weekly downloads).prettier-plugin-remove-duplicate-json-…npm ranking · by weekly downloads · Last 90 days#3121current 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-remove-duplicate-json-keys npm ranking history: currently #3121 (by weekly downloads).

Listing placement

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

Listing placement

Prettier plugins267 listings · 14 pages · page 12, #2 (overall #222)
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-remove-duplicate-json-keys
Date (UTC)Weekly downloadsChange vs. previous
110
11-1
12+2
10+6
4+2
20
2-2
40
4-2
60
60
60
60
6—

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