{"id":15354906,"url":"https://github.com/capaj/be-pretty","last_synced_at":"2025-09-01T17:33:45.162Z","repository":{"id":33594026,"uuid":"159685800","full_name":"capaj/be-pretty","owner":"capaj","description":":lipstick: a small CLI utility for every lazy prettier maximalist out there","archived":false,"fork":false,"pushed_at":"2024-11-28T16:10:01.000Z","size":352,"stargazers_count":42,"open_issues_count":11,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-15T04:11:42.809Z","etag":null,"topics":["hacktoberfest","prettier"],"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/capaj.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":"2018-11-29T15:17:03.000Z","updated_at":"2024-11-28T16:10:05.000Z","dependencies_parsed_at":"2024-06-21T20:23:02.355Z","dependency_job_id":"d5af87d6-4da0-4d1c-8ae2-ce55dd830e94","html_url":"https://github.com/capaj/be-pretty","commit_stats":{"total_commits":33,"total_committers":1,"mean_commits":33.0,"dds":0.0,"last_synced_commit":"95550547dbd50cdc46abad48d33ff58b9acd510e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fbe-pretty","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fbe-pretty/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fbe-pretty/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/capaj%2Fbe-pretty/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/capaj","download_url":"https://codeload.github.com/capaj/be-pretty/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249003955,"owners_count":21196793,"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":["hacktoberfest","prettier"],"created_at":"2024-10-01T12:21:36.877Z","updated_at":"2025-04-15T04:11:51.460Z","avatar_url":"https://github.com/capaj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# be-pretty\n\n![fabolous](https://media.giphy.com/media/XmiTYLQ5qXTqM/giphy.gif)\n\n:lipstick: adds prettier to an existing project with all bells and whistles-including husky and pretty-quick.\nHave you ever been bothered by all the steps you need to do in a legacy codebase to get prettier all set up? Well now you don't have to.\n\n## Usage\n\nWhen you are in an old codebase which needs to be pretty now, and stay pretty forever and ever execute `npx be-pretty`. An output should look like this:\n\n```\nbe-pretty\n  ✔ Installing prettier husky pretty-quick\n  ✔ Copying custom .prettierrc\n  ✔ Adding pretty-quick pre-commit to package.json\n  ✔ Formatting whole repo\n```\n\nNow you should have everything ready to just commit\u0026push.\n\nYou may skip formatting step with a flag `--skipFormatting`\n\n## Install(optional)\n\n```\nnpm i be-pretty -g\n```\n\nRequires that you have npm/yarn/pnpm/bun and `npx` globally available. be pretty defaults to running npm, but if there is `yarn.lock` file it will use `yarn`.\n\n## Customize .prettierrc\n\nby default, be-pretty creates this prettier config.\n\n```js\n{\n  \"arrowParens\": \"always\", // good for typescript/flow when you want to type your function arguments\n  \"singleQuote\": true // IMHO better readability\n}\n```\n\nif you want to customize this, just run `be-pretty setDefault -p=\"/path/to/your/defaultPrettierRc\"`. You can omit the path and if there is a prettierc file in the current working directory it will be used.\nbe-pretty will use this as default from now on.\n\n## Format all\n\nif you just want to reformat everything, you can call `be-pretty formatAll`\n\n## All Commands\n\n```\n  be-pretty setDefault  sets a .prettierrc file as your default, if ommited\n                           will look for the .prettierrc file in CWD[aliases: d]\n  be-pretty formatAll   formats everything excluding node_modules[aliases: f]\n  be-pretty run         run the series of commands to make a codebase pretty\n                                                                       [default]\n```\n\n## FAQ\n\n### Will this work for a newly added languages as well?\n\nYes, the list of supported file extensions is not hardcoded anywhere-format all just invokes prettier in the current folder and let's it format all supported extensions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapaj%2Fbe-pretty","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcapaj%2Fbe-pretty","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcapaj%2Fbe-pretty/lists"}