{"id":20821060,"url":"https://github.com/love1ace/byulhook","last_synced_at":"2025-05-07T16:22:14.389Z","repository":{"id":254544039,"uuid":"846848559","full_name":"love1ace/byulhook","owner":"love1ace","description":"A streamlined tool for effortlessly managing Git hooks with speed and ease. 🐈 ","archived":false,"fork":false,"pushed_at":"2024-08-27T12:13:06.000Z","size":5363,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-05-04T21:16:03.557Z","etag":null,"topics":["byulhook","githook","hooks","husky","lefthook"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/love1ace.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":"2024-08-24T05:52:17.000Z","updated_at":"2024-12-12T16:39:51.000Z","dependencies_parsed_at":"2024-11-17T22:11:16.866Z","dependency_job_id":"d8c4e0f1-4c46-4007-8736-fb4a9a5110d8","html_url":"https://github.com/love1ace/byulhook","commit_stats":null,"previous_names":["byulhook/byulhook"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/love1ace%2Fbyulhook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/love1ace%2Fbyulhook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/love1ace%2Fbyulhook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/love1ace%2Fbyulhook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/love1ace","download_url":"https://codeload.github.com/love1ace/byulhook/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252913120,"owners_count":21824104,"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":["byulhook","githook","hooks","husky","lefthook"],"created_at":"2024-11-17T22:11:11.369Z","updated_at":"2025-05-07T16:22:14.381Z","avatar_url":"https://github.com/love1ace.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# byulhook\n\n**byulhook** is a tool for managing Git hooks.\n\n![npm](https://img.shields.io/npm/v/byulhook)\n![license](https://img.shields.io/npm/l/byulhook)\n\n## Installation\n\nYou can install **byulhook** using your preferred package manager:\n\n### npm\n\n```bash\nnpm install byulhook\n```\n\n### Yarn\n\n```bash\nyarn add byulhook\n```\n\n### pnpm\n\n```bash\npnpm add byulhook\n```\n\n### Bun\n\n```bash\nbun add byulhook\n```\n## Setup error\nIf the `byulhook.yml` file hasn’t been created, run:\n```bash\nnode node_modules/byul-alias/dist/bin/setup.mjs\n```\nOr, you can manually create the `byulhook.yml` file and add this code:\n\n```yaml\n# hook name:\n#   This is the name of the Git hook, such as 'pre-commit', 'commit-msg', etc.\n#   commands:\n#     command name:\n#       A user-defined name for the command. This can be any descriptive name you choose.\n#       run: 'command to run'\n#       The shell command or script that will be executed when the hook is triggered.\n#\n# Example:\n#\n# pre-commit:\n#   commands:\n#     lint:\n#       run: 'npm run lint'\n```\n## Usage\n\n### Define Your Git Hooks\n\nCustomize your Git hooks by editing the `byulhook.yml` file. Here’s an example configuration:\n\n```yaml\npre-commit:\n  commands:\n    Lint:\n      run: \"npm run lint\"\n    Prettier:\n      run: \"npm run prettier -- --write '**/*.{js,jsx,ts,tsx,css,md}'\"\n```\n\nThis setup will automatically run linting and formatting to ensure code consistency across your project.\n\n### Install and Apply Hooks\n\nOnce your hooks are configured, install and apply them effortlessly with:\n\n```bash\nnpx byulhook install\nnpx byulhook add\n```\n\nByulHook automatically finds the right directory for your hooks and applies them with no extra effort.\n\n## Why Choose ByulHook?\n\n- **Setup:** ByulHook features a straightforward installation process.\n- **Speed:** ByulHook operates at lightning-fast speeds, keeping your development workflow smooth and allowing you to focus on writing important code.\n- **Convenience:** ByulHook’s simple design makes managing Git hooks easy, even for beginners.\n- **Compatibility:** ByulHook works seamlessly across various environments and Git workflows, integrating effortlessly into your existing setup.\n- **Logs:** ByulHook provides easy-to-read logs, making it simple to understand what’s happening and troubleshoot when needed\n\n## Contributing\n\nWe welcome contributions to **byulhook**! Whether it's reporting a bug, suggesting an enhancement, or submitting a pull request, your input is valued.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Contact\n\nFor any questions, suggestions, or feedback, please contact [love1ace](mailto:lovelacedud@gmail.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flove1ace%2Fbyulhook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flove1ace%2Fbyulhook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flove1ace%2Fbyulhook/lists"}