{"id":15991923,"url":"https://github.com/manics/precommit-npm-run-scripts","last_synced_at":"2025-10-15T22:25:39.164Z","repository":{"id":221886818,"uuid":"755664184","full_name":"manics/precommit-npm-run-scripts","owner":"manics","description":"A pre-commit hook to run NPM scripts from your package.json file","archived":false,"fork":false,"pushed_at":"2024-08-01T08:10:15.000Z","size":8,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-22T00:46:46.357Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/manics.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-10T19:40:56.000Z","updated_at":"2024-02-10T19:46:55.000Z","dependencies_parsed_at":"2024-11-21T06:36:38.866Z","dependency_job_id":"f8965c43-6294-4c6d-9a0d-a1c8aa918400","html_url":"https://github.com/manics/precommit-npm-run-scripts","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"d5749af30cc355d54312ea12a7916906a4c1d848"},"previous_names":["manics/precommit-npm-run-scripts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manics%2Fprecommit-npm-run-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manics%2Fprecommit-npm-run-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manics%2Fprecommit-npm-run-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manics%2Fprecommit-npm-run-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manics","download_url":"https://codeload.github.com/manics/precommit-npm-run-scripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243713415,"owners_count":20335567,"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":[],"created_at":"2024-10-08T06:04:14.828Z","updated_at":"2025-10-15T22:25:34.132Z","avatar_url":"https://github.com/manics.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pre-commit hook to run NPM scripts\n\nA pre-commit hook to run NPM scripts from your `package.json` file.\n\n**WARNING: This does not work with the [pre-commit.ci](https://pre-commit.ci/) service to as network access is only available during installation, it is blocked when running.**\n\nIt will:\n\n- Run `npm install` to install your repository's dependencies.\n- Run `npm run \u003cscript\u003e` for each script in the `args` section of your `.pre-commit-config.yaml` file.\n\n## Example `.pre-commit-config.yaml`\n\n```yaml\nrepos:\n  - repo: https://github.com/manics/precommit-npm-run-scripts\n    rev: main # Replace with a tag or commit hash\n    hooks:\n      - id: npm-run-scripts\n        args: [format]\n```\n\nThis will run `npm install` followed by `npm run format`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanics%2Fprecommit-npm-run-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanics%2Fprecommit-npm-run-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanics%2Fprecommit-npm-run-scripts/lists"}