{"id":15392544,"url":"https://github.com/vordgi/yarn-plugin-hooker","last_synced_at":"2025-03-27T23:41:37.184Z","repository":{"id":221703052,"uuid":"755151499","full_name":"vordgi/yarn-plugin-hooker","owner":"vordgi","description":"Yarn plugin that adds support for Pre- and Post- hooks","archived":false,"fork":false,"pushed_at":"2024-02-10T07:34:11.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-06T04:47:33.517Z","etag":null,"topics":["yarn","yarn-berry","yarn-plugin"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/yarn-plugin-hooker","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/vordgi.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-02-09T14:29:40.000Z","updated_at":"2024-02-09T17:48:15.000Z","dependencies_parsed_at":"2024-10-19T00:14:26.882Z","dependency_job_id":"b1afd48f-2d6a-428b-ab2d-c8a70cccb735","html_url":"https://github.com/vordgi/yarn-plugin-hooker","commit_stats":{"total_commits":7,"total_committers":1,"mean_commits":7.0,"dds":0.0,"last_synced_commit":"bef933fd391f2d11b0019882e442e473596c7ddc"},"previous_names":["vordgi/yarn-plugin-hooker"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vordgi%2Fyarn-plugin-hooker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vordgi%2Fyarn-plugin-hooker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vordgi%2Fyarn-plugin-hooker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vordgi%2Fyarn-plugin-hooker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vordgi","download_url":"https://codeload.github.com/vordgi/yarn-plugin-hooker/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245944062,"owners_count":20697948,"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":["yarn","yarn-berry","yarn-plugin"],"created_at":"2024-10-01T15:15:11.502Z","updated_at":"2025-03-27T23:41:37.164Z","avatar_url":"https://github.com/vordgi.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yarn-plugin-hooker\n\nThe plugin adds support for pre- and post-hooks for scripts in your package.json\n\n## Installation\n```bash\nyarn dlx yarn-plugin-hooker\n```\n\n## Usage\n\nIf you want to add a command that runs automatically before, for example, the `test` command, create a command with the `pre` prefix (`pretest`)\n\nYou can do the same for the post-execution action by adding a `post` prefix to the beginning (`posttest`)\n\n```json\n{\n    \"name\": \"example\",\n    \"scripts\": {\n        \"pretest\": \"node -e \\\"console.log('pretest command')\\\"\",\n        \"test\": \"jest\",\n        \"posttest\": \"node -e \\\"console.log('posttest command')\\\"\"\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvordgi%2Fyarn-plugin-hooker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvordgi%2Fyarn-plugin-hooker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvordgi%2Fyarn-plugin-hooker/lists"}