{"id":20710688,"url":"https://github.com/nice-move/prettier-plugin-package-json","last_synced_at":"2025-04-23T06:20:05.327Z","repository":{"id":57130898,"uuid":"375608005","full_name":"nice-move/prettier-plugin-package-json","owner":"nice-move","description":"A `prettier` plugin to make `package.json` prettier","archived":false,"fork":false,"pushed_at":"2024-11-20T16:00:59.000Z","size":500,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-13T09:54:23.352Z","etag":null,"topics":["nice-move","npm","package","package-json","prettier","prettier-plugin","sort"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nice-move.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-10T07:22:31.000Z","updated_at":"2024-11-20T16:01:09.000Z","dependencies_parsed_at":"2024-06-19T02:58:20.910Z","dependency_job_id":"bc44d5bf-a59f-44b0-acc2-4ba666ad1a8f","html_url":"https://github.com/nice-move/prettier-plugin-package-json","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nice-move%2Fprettier-plugin-package-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nice-move%2Fprettier-plugin-package-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nice-move%2Fprettier-plugin-package-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nice-move%2Fprettier-plugin-package-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nice-move","download_url":"https://codeload.github.com/nice-move/prettier-plugin-package-json/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250380241,"owners_count":21420910,"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","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":["nice-move","npm","package","package-json","prettier","prettier-plugin","sort"],"created_at":"2024-11-17T02:12:52.259Z","updated_at":"2025-04-23T06:20:05.299Z","avatar_url":"https://github.com/nice-move.png","language":"JavaScript","readme":"# @nice-move/prettier-plugin-package-json\n\nA [prettier] plugin to make `package.json` prettier.\n\n[![npm][npm-badge]][npm-url]\n[![github][github-badge]][github-url]\n![node][node-badge]\n\n[prettier]: https://prettier.io/\n[npm-url]: https://www.npmjs.com/package/@nice-move/prettier-plugin-package-json\n[npm-badge]: https://img.shields.io/npm/v/@nice-move/prettier-plugin-package-json.svg?style=flat-square\u0026logo=npm\n[github-url]: https://github.com/airkro/nice-move/tree/master/packages/prettier-plugin-package-json\n[github-badge]: https://img.shields.io/npm/l/@nice-move/prettier-plugin-package-json.svg?style=flat-square\u0026colorB=blue\u0026logo=github\n[node-badge]: https://img.shields.io/node/v/@nice-move/prettier-plugin-package-json.svg?style=flat-square\u0026colorB=green\u0026logo=node.js\n\nRead about [npm-package.json](https://docs.npmjs.com/cli/v7/configuring-npm/package-json).\n\n## Installation\n\n```bash\nnpm install prettier @nice-move/prettier-plugin-package-json --save-dev\n```\n\n## Usage\n\n```jsonc\n// .prettierrc.json\n{\n  \"overrides\": [\n    {\n      \"files\": \"package.json\",\n      \"options\": {\n        \"parser\": \"package-json\"\n      }\n    }\n  ]\n}\n```\n\n```bash\nprettier --write **/package.json\n```\n\n## Feature\n\n[normalize-package-data]: https://github.com/npm/normalize-package-data\n[normalize-package-bin]: https://github.com/npm/npm-normalize-package-bin\n\n- Normalize by [normalize-package-data] and [normalize-package-bin]\n- Sort `package.json` fields in a preset order\n- Expand `author` and `contributors` fields into objects\n- Remove deprecated fields like `preferGlobal`, `engineStrict`\n- Merge `bundleDependencies` into `bundledDependencies`\n- Rename `esnext` / `jsnext` to `module`, rename `typings` to `types`\n- Differentiate `UNLICENSED` and `Unlicense` license by `private`\n- Remove leading `./` from `main` / `files[n]`\n- Normalize `engines.*` versions\n- Normalize `repository` fields\n- Set `version` when needed\n- More ...\n\n## Related\n\n- [@nice-move/prettier-config](https://github.com/nice-move/nice-move/tree/master/packages/prettier-config)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnice-move%2Fprettier-plugin-package-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnice-move%2Fprettier-plugin-package-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnice-move%2Fprettier-plugin-package-json/lists"}