{"id":21420561,"url":"https://github.com/maxhoffmann/captain-git-hook","last_synced_at":"2025-07-14T06:32:22.305Z","repository":{"id":28648606,"uuid":"32167878","full_name":"maxhoffmann/captain-git-hook","owner":"maxhoffmann","description":":white_check_mark: define git hooks as scripts in your package.json","archived":false,"fork":false,"pushed_at":"2018-03-12T23:15:59.000Z","size":20,"stargazers_count":25,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-24T23:40:59.645Z","etag":null,"topics":["build-automation","git-hooks"],"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/maxhoffmann.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}},"created_at":"2015-03-13T16:42:47.000Z","updated_at":"2018-11-13T13:28:54.000Z","dependencies_parsed_at":"2022-09-06T13:02:24.781Z","dependency_job_id":null,"html_url":"https://github.com/maxhoffmann/captain-git-hook","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxhoffmann%2Fcaptain-git-hook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxhoffmann%2Fcaptain-git-hook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxhoffmann%2Fcaptain-git-hook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maxhoffmann%2Fcaptain-git-hook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maxhoffmann","download_url":"https://codeload.github.com/maxhoffmann/captain-git-hook/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225957986,"owners_count":17551331,"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":["build-automation","git-hooks"],"created_at":"2024-11-22T20:18:17.496Z","updated_at":"2024-11-22T20:18:18.240Z","avatar_url":"https://github.com/maxhoffmann.png","language":"JavaScript","readme":"captain-git-hook [![version][1]][2] [![build][3]][4]\n================\n\ndefine git hooks as scripts in your package.json (requires node `\u003e= 0.12`)\n\nUsage\n-----\n\n__package.json__\n```json\n{\n  \"scripts\": {\n    \"pre-commit\": \"echo 'this prevents commiting' \u0026\u0026 exit 1\"\n  }\n}\n```\n\nAdd a script to your `package.json` for any git hook you want to listen to.\n\nCurrently supported hooks:\n\n```bash\npre-commit\npost-commit\npost-merge\npre-push\n```\n\nInstallation\n------------\n\n```bash\nnpm i captain-git-hook\n```\n\nLICENSE\n-------\n\nThe MIT License (MIT) Maximilian Hoffmann\n\n[1]: http://img.shields.io/npm/v/captain-git-hook.svg?style=flat\n[2]: https://www.npmjs.org/package/captain-git-hook\n[3]: http://img.shields.io/travis/maxhoffmann/captain-git-hook.svg?style=flat\n[4]: https://travis-ci.org/maxhoffmann/captain-git-hook\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxhoffmann%2Fcaptain-git-hook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxhoffmann%2Fcaptain-git-hook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxhoffmann%2Fcaptain-git-hook/lists"}