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
prettier-plugin-remove-duplicate-json-keys has 1 recorded weekly downloads on npm, a decrease of 87.5% over the past 30 days, ranking #2211 of 2,256 tracked 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
or
Usage
The plugin will be automatically picked up by Prettier. Just run Prettier as usual:
Example
Input:
Output:
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:
Or via CLI:
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
7/30/90-day growth
Ranking history
Listing placement
Listing placement
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 (121)Similar npm Prettier plugins plugins
All 20 prettier-plugin-remove-duplicate-json-keys alternativesData 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 19, 2026. See the methodology.