{"id":20710697,"url":"https://github.com/nice-move/garou","last_synced_at":"2025-10-15T13:23:12.090Z","repository":{"id":38013555,"uuid":"324273679","full_name":"nice-move/garou","owner":"nice-move","description":"Do thing what heroes didn't do","archived":false,"fork":false,"pushed_at":"2025-10-05T21:03:20.000Z","size":2853,"stargazers_count":0,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-05T23:21:12.192Z","etag":null,"topics":["diff","eslint","prettier","sort","stylelint"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/garou","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-12-25T02:40:41.000Z","updated_at":"2025-10-05T21:01:52.000Z","dependencies_parsed_at":"2024-01-29T20:16:46.827Z","dependency_job_id":"e37d9819-f85e-4222-a91e-d793cf3c46f3","html_url":"https://github.com/nice-move/garou","commit_stats":{"total_commits":200,"total_committers":3,"mean_commits":66.66666666666667,"dds":0.525,"last_synced_commit":"8347ff8213479fdb4ba4c62deee3f28c63683c30"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nice-move/garou","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nice-move%2Fgarou","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nice-move%2Fgarou/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nice-move%2Fgarou/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nice-move%2Fgarou/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nice-move","download_url":"https://codeload.github.com/nice-move/garou/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nice-move%2Fgarou/sbom","scorecard":{"id":684357,"data":{"date":"2025-08-11","repo":{"name":"github.com/nice-move/garou","commit":"5073339596ee3b84c6531fc10b2075358faa1f26"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4,"checks":[{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/bring-it.yaml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":6,"reason":"8 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 6","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/bring-it.yaml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/nice-move/garou/bring-it.yaml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/bring-it.yaml:38: update your workflow using https://app.stepsecurity.io/secureworkflow/nice-move/garou/bring-it.yaml/master?enable=pin","Info:   0 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 18 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T00:16:08.405Z","repository_id":38013555,"created_at":"2025-08-22T00:16:08.405Z","updated_at":"2025-08-22T00:16:08.405Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279082465,"owners_count":26099413,"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-10-15T02:00:07.814Z","response_time":56,"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":["diff","eslint","prettier","sort","stylelint"],"created_at":"2024-11-17T02:12:54.252Z","updated_at":"2025-10-15T13:23:12.042Z","avatar_url":"https://github.com/nice-move.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# garou\n\nDo thing what heroes didn't do.\n\n[![npm][npm-badge]][npm-url]\n[![github][github-badge]][github-url]\n![node][node-badge]\n\n[npm-url]: https://www.npmjs.com/package/garou\n[npm-badge]: https://img.shields.io/npm/v/garou.svg?style=flat-square\u0026logo=npm\n[github-url]: https://github.com/nice-move/garou\n[github-badge]: https://img.shields.io/npm/l/garou.svg?style=flat-square\u0026colorB=blue\u0026logo=github\n[node-badge]: https://img.shields.io/node/v/garou.svg?style=flat-square\u0026colorB=green\u0026logo=node.js\n\n## Features\n\nA code refactoring tool, fixing what `eslint/stylelint` shouldn't care about, what `prettier` didn't care about. Offering better code comparing for `git diff`.\n\n- Enforce consistent brace style\n- Handle `tsx/jsx/vue` self closing\n- Handle text case from `css/scss/less`\n- Remove vendor prefix from `css/scss/less`\n- Handle whitespace, empty line between code\n- Sort `html/htm` attributes\n- Sort `jsx/tsx` props\n- Sort `tsx/ts/mts/cts/jsx/js/mjs/cjs` class members\n- ~~Sort `tsx/ts/mts/cts/jsx/js/mjs/cjs` import / export~~\n- Sort `vue` component properties / attributes\n- Dedupe yarn v1 lockfile\n- Remove cnpm cache from yarn v1 lockfile\n- Sort `OpenAPI Specification` config files (`json/yaml/yml`)\n- ...other fixing\n\n## Installation\n\n```sh\nnpm install garou --save-dev\n```\n\n## Usage\n\n```sh\nnpm exec garou .\nnpm exec garou src\nnpm exec garou **/foo.js\n```\n\n### Run without installation\n\n```sh\nnpx garou .\n```\n\n## Configuration\n\n```jsonc\n// example: package.json\n{\n  \"garou\": {\n    \"import-groups\": [\n      // see: https://github.com/lydell/eslint-plugin-simple-import-sort#custom-grouping\n      [\"react\", \"react-dom\"],\n      // shorthand for [\"^@external\\\\/\"]\n      \"^@external\\\\/\",\n      \"lodash\"\n    ],\n    \"ignore\": [\"fixture/**\"]\n  }\n}\n```\n\n## Tips\n\n### Using `garou` with `lint-staged`\n\n```jsonc\n// package.json\n{\n  \"lint-staged\": {\n    \"*\": [\"garou\", \"prettier\", \"eslint --fix\"]\n  }\n}\n```\n\nUsing `garou` might mess up your format, I suggest run `garou` before run `prettier`.\n\nRead more at the [lint-staged](https://github.com/okonet/lint-staged#configuration) repo.\n\n### OpenAPI Specification file sorting\n\nGarou will sort your file when it has `openapi` properties as `3.x.x`.\n\n```sh\nnpm exec garou \"**/*.{json,yaml,yml}\"\n```\n\n## Inspiration\n\nThis project is inspired by [sortier](https://snowcoders.github.io/sortier/).\n\n## Related\n\n- [nice-move](https://github.com/nice-move/nice-move)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnice-move%2Fgarou","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnice-move%2Fgarou","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnice-move%2Fgarou/lists"}