prettier-plugin-pkg weekly downloads statistics
By un-ts (5 listings) · npm · Prettier plugins
An opinionated package.json formatter plugin for Prettier
prettier-plugin-pkg has 18,101 recorded weekly downloads on npm, a decrease of 48.7% over the past 30 days, ranking #778 of 2,256 tracked listings.
About prettier-plugin-pkg
prettier-plugin-pkg
An opinionated package.json formatter plugin for Prettier, based on [prettier-plugin-package][].
Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing, taking various rules into account.
This plugin adds support for package.json files used within NPM modules, [npm][], [yarn][] and [VSCode][] is supported out of box.
Requirements
prettier-plugin-pkg is an evergreen module. 🌲 This module requires an LTS Node version (v12.0.0+).
Install
Usage
Once installed, Prettier plugins must be added to .prettierrc:
Then:
Rules
This plugin enforces its own set of opinionated rules:
Engines
Keys in engines are ordered alphabetically.
Files
Keys in files are ordered alphabetically (keeping the negations below), followed by README.md and LICENSE if they exist in the array.
Scripts
Keys in scripts are ordered alphabetically. Use prefixes wisely to properly order child scripts. e.g. lint, lint:ts.
Sorting
Top-level keys are sorted according to a style commonly seen in the packages of @JounQin, @1stG and @unts. Known keys, and their order are
Unknown keys, or keys not part of the list above, will be alphabetically sorted and added to the end of the file. Note that this list takes into account both npm and yarn keys.
You can also use the packageSortOrder option to specify a custom sort order, or use the packageSortOrderPreset option to use a preset sort order:
• npm: sorts by npm's document • npm-plus: sorts by sort-package-json and therefore is compatible to prettier-plugin-packagejson
Forthcoming
Forthcoming rules include:
• [ ] Author format • [ ] Repository format
Format Options
Acknowledgements
Thanks for @shellscape's original great work of [prettier-plugin-package][] again.
Sponsors and Backers
Sponsors
| 1stG | RxTS | UnTS |
| | | |
Backers
| 1stG | RxTS | UnTS |
| | | |
Meta
LICENSE (Mozilla Public License)
Description from the npm listing.
- package
- package.json
- pkg
- plugin
- prettier
- prettier-plugin
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-pkg 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-pkg. First seen Oct 16, 2026; last successful collection Oct 19, 2026. See the methodology.