{"id":16550554,"url":"https://github.com/tocttou/prettier-sort-destructure","last_synced_at":"2025-06-17T03:33:46.749Z","repository":{"id":57330067,"uuid":"201053299","full_name":"tocttou/prettier-sort-destructure","owner":"tocttou","description":"A prettier parser that sorts the destructured keys in object assignments","archived":false,"fork":false,"pushed_at":"2019-08-08T10:43:07.000Z","size":3,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T14:39:15.767Z","etag":null,"topics":["destructure","prettier","sort"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tocttou.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-08-07T13:12:00.000Z","updated_at":"2019-08-27T09:31:24.000Z","dependencies_parsed_at":"2022-08-29T04:30:26.713Z","dependency_job_id":null,"html_url":"https://github.com/tocttou/prettier-sort-destructure","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/tocttou%2Fprettier-sort-destructure","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tocttou%2Fprettier-sort-destructure/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tocttou%2Fprettier-sort-destructure/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tocttou%2Fprettier-sort-destructure/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tocttou","download_url":"https://codeload.github.com/tocttou/prettier-sort-destructure/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241871174,"owners_count":20034413,"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":["destructure","prettier","sort"],"created_at":"2024-10-11T19:34:50.268Z","updated_at":"2025-03-04T15:28:03.548Z","avatar_url":"https://github.com/tocttou.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Prettier Sort Destructure\n\nInput:\n\n```\nvar { b, d, c } = {\n    b: 1,\n    d: 2,\n    c: 3\n};\n```\n\nOutput:\n\n```\nvar { b, c, d } = {\n    b: 1,\n    d: 2,\n    c: 3\n};\n```\n\n#### Setup:\n\nInstall: \n```\nnpm install --save-dev prettier-sort-destructure\n```\n\nUse:\n\nvia `.prettierrc`:\n\n```\n{\n  \"overrides\": [\n    {\n      \"files\": [\"*.js\", \"*.jsx\"],\n      \"options\": {\n        \"parser\": \"node_modules/prettier-sort-destructure/index.js\"\n      }\n    }\n  ]\n}\n```\n\nvia CLI:\n\n```\nprettier --parser node_modules/prettier-sort-destructure/index.js \u003c...files\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftocttou%2Fprettier-sort-destructure","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftocttou%2Fprettier-sort-destructure","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftocttou%2Fprettier-sort-destructure/lists"}