{"id":13451814,"url":"https://github.com/shellscape/prettier-plugin-package","last_synced_at":"2025-08-14T12:38:09.340Z","repository":{"id":57330033,"uuid":"206453200","full_name":"shellscape/prettier-plugin-package","owner":"shellscape","description":"An opinionated package.json formatter plugin for Prettier","archived":false,"fork":false,"pushed_at":"2025-07-31T15:18:33.000Z","size":537,"stargazers_count":89,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-08-09T13:38:26.202Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shellscape.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/funding.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"patreon":"shellscape","custom":"https://paypal.me/shellscape","liberapay":"shellscape"}},"created_at":"2019-09-05T02:00:16.000Z","updated_at":"2025-07-31T18:46:31.000Z","dependencies_parsed_at":"2024-01-14T17:05:16.120Z","dependency_job_id":"4629679b-22f6-4956-bc44-cd4b0b9625ac","html_url":"https://github.com/shellscape/prettier-plugin-package","commit_stats":{"total_commits":35,"total_committers":4,"mean_commits":8.75,"dds":"0.19999999999999996","last_synced_commit":"2765cfdfa826374c18f32e1ab8ffa767e8a3e37d"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/shellscape/prettier-plugin-package","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellscape%2Fprettier-plugin-package","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellscape%2Fprettier-plugin-package/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellscape%2Fprettier-plugin-package/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellscape%2Fprettier-plugin-package/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shellscape","download_url":"https://codeload.github.com/shellscape/prettier-plugin-package/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shellscape%2Fprettier-plugin-package/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269772125,"owners_count":24473344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-10T02:00:08.965Z","response_time":71,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T07:01:03.490Z","updated_at":"2025-08-14T12:38:09.307Z","avatar_url":"https://github.com/shellscape.png","language":"JavaScript","readme":"[tests]: \thttps://img.shields.io/circleci/project/github/shellscape/prettier-plugin-package.svg\n[tests-url]: https://circleci.com/gh/shellscape/prettier-plugin-package\n\n[cover]: https://codecov.io/gh/shellscape/prettier-plugin-package/branch/master/graph/badge.svg\n[cover-url]: https://codecov.io/gh/shellscape/prettier-plugin-package\n\n[size]: https://packagephobia.now.sh/badge?p=prettier-plugin-package\n[size-url]: https://packagephobia.now.sh/result?p=prettier-plugin-package\n\n![banner](https://raw.githubusercontent.com/shellscape/prettier-plugin-package/master/assets/banner.svg?sanitize=true)\n\n# prettier-plugin-package [![tests][tests]][tests-url] [![cover][cover]][cover-url] [![size][size]][size-url] [![libera manifesto](https://img.shields.io/badge/libera-manifesto-lightgrey.svg)](https://liberamanifesto.com)\n\n\nAn opinionated `package.json` formatter plugin for [Prettier](https://prettier.io)\n\nPrettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing, taking various rules into account.\n\nThis plugin adds support for `package.json` files used within NPM modules.\n\n## Requirements\n\n`prettier-plugin-package` is an evergreen module. 🌲 This module requires an [LTS](https://github.com/nodejs/Release) Node version (v20.19.0+), and `prettier` v3.0.0+.\n\nFor Prettier v1.x support, please use `prettier-plugin-package@0.3.1`.\nFor Prettier v2.x support, please use `prettier-plugin-package@1.4.0`.\n\n## Install\n\nUsing npm:\n\n```console\nnpm install prettier prettier-plugin-package --save-dev\n```\n\n\u003ca href=\"https://www.patreon.com/shellscape\"\u003e\n  \u003cimg src=\"https://c5.patreon.com/external/logo/become_a_patron_button@2x.png\" width=\"160\"\u003e\n\u003c/a\u003e\n\n_Please consider donating if you find this project useful._\n\n## Usage\n\nOnce installed, [Prettier plugins](https://prettier.io/docs/en/plugins.html) should be automatically recognized by Prettier. To use this plugin, confirm that it's installed and run Prettier using your preferred method. For example:\n\n```console\n$ npx prettier --write package.json\n```\n\n## Rules\n\nThis plugin enforces its own set of opinionated rules:\n\n### Engines\n\nKeys in `engines` are ordered alphabetically.\n\n### Files\n\nKeys in `files` are ordered alphabetically (keeping the negations below), followed by `README.md` and `LICENSE` if they exist in the array.\n\n### Scripts\n\nKeys in `scripts` are ordered alphabetically. Use prefixes wisely to properly order child scripts. e.g. `lint`, `lint:ts`.\n\n### Sorting\n\nTop-level keys are sorted according to a style commonly seen in the packages of [@sindresorhus](https://github.com/sindresorhus). Known keys, and their order are:\n\n```js\n[\n  // meta\n  'name',\n  'version',\n  'flat',\n  'private',\n  'publishConfig',\n  'description',\n  'license',\n  'repository',\n  'author',\n  'homepage',\n  'bugs',\n\n  // entry\n  'main',\n  'bin',\n  'module',\n  'type',\n  'exports',\n\n  // constraints\n  'engines',\n  'cpu',\n  'os',\n\n  // content and util\n  'scripts',\n  'files',\n  'keywords',\n\n  // dependencies\n  'bundledDependencies',\n  'optionalDependencies',\n  'peerDependencies',\n  'peerDependenciesMeta',\n  'dependencies',\n  'devDependencies',\n  'resolutions',\n\n  // types\n  'types',\n  'typings'\n]\n```\n\nUnknown 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.\n\n### Forthcoming\n\nForthcoming rules include:\n\n- [ ] Author format\n- [ ] Repository format\n\n## Meta\n\n[CONTRIBUTING](./.github/CONTRIBUTING.md)\n\n[LICENSE (Mozilla Public License)](./LICENSE)\n","funding_links":["https://patreon.com/shellscape","https://paypal.me/shellscape","https://liberapay.com/shellscape","https://www.patreon.com/shellscape"],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellscape%2Fprettier-plugin-package","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshellscape%2Fprettier-plugin-package","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshellscape%2Fprettier-plugin-package/lists"}