{"id":2188382,"name":"precommit","ecosystem":"npm","description":"Yet another precommit module that will run tasks defined in a config file or in a `package.json` file, stashing anything that is not supposed to be commited before run the scripts to avoid false positives when running validation like tasks","homepage":"https://github.com/royriojas/precommit","licenses":"MIT","normalized_licenses":["MIT"],"repository_url":"https://github.com/royriojas/precommit","keywords_array":["pre-commit","precommit","hooks","git","hooks","enforce","git","workflow"],"namespace":null,"versions_count":17,"first_release_published_at":"2015-07-29T08:27:34.578Z","latest_release_published_at":"2016-07-31T10:13:16.516Z","latest_release_number":"1.2.2","last_synced_at":"2026-04-13T04:45:38.029Z","created_at":"2022-04-09T22:13:49.268Z","updated_at":"2026-04-13T04:45:38.029Z","registry_url":"https://www.npmjs.com/package/precommit","install_command":"npm install precommit","documentation_url":null,"metadata":{"funding":null,"dist-tags":{"latest":"1.2.2"}},"repo_metadata":{"id":57329645,"uuid":"39681334","full_name":"royriojas/precommit","owner":"royriojas","description":"A precommit script that will execute certain tasks only on the files that were added to the git index stashing the other ones to avoid false positives when running validation tasks","archived":false,"fork":false,"pushed_at":"2024-10-12T05:16:56.000Z","size":46,"stargazers_count":5,"open_issues_count":11,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-16T06:53:21.542Z","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/royriojas.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","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":"2015-07-25T10:53:44.000Z","updated_at":"2022-12-27T19:03:17.000Z","dependencies_parsed_at":"2024-10-28T14:28:15.553Z","dependency_job_id":"c1b30f48-c997-458e-a38e-711dc7721f12","html_url":"https://github.com/royriojas/precommit","commit_stats":{"total_commits":53,"total_committers":3,"mean_commits":"17.666666666666668","dds":"0.28301886792452835","last_synced_commit":"4497edc7c5e19f4339c7be3f00770453f934fedd"},"previous_names":[],"tags_count":17,"template":false,"template_full_name":null,"purl":"pkg:github/royriojas/precommit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royriojas%2Fprecommit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royriojas%2Fprecommit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royriojas%2Fprecommit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royriojas%2Fprecommit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/royriojas","download_url":"https://codeload.github.com/royriojas/precommit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/royriojas%2Fprecommit/sbom","scorecard":{"id":785977,"data":{"date":"2025-08-11","repo":{"name":"github.com/royriojas/precommit","commit":"4497edc7c5e19f4339c7be3f00770453f934fedd"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Code-Review","score":0,"reason":"Found 1/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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":-1,"reason":"no workflows found","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":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","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":"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":"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"}},{"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 1 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"}}]},"last_synced_at":"2025-08-23T06:06:07.662Z","repository_id":57329645,"created_at":"2025-08-23T06:06:07.662Z","updated_at":"2025-08-23T06:06:07.662Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":277012099,"owners_count":25745052,"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-09-26T02:00:09.010Z","response_time":78,"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"},"owner_record":{"login":"royriojas","name":"Roy Riojas","uuid":"131290","kind":"user","description":"","email":"","website":"http://royriojas.blogspot.com","location":null,"twitter":null,"company":null,"icon_url":"https://avatars.githubusercontent.com/u/131290?u=b11daac0a8f87daf002f451b329e61f2cb344c0a\u0026v=4","repositories_count":236,"last_synced_at":"2025-03-14T04:32:40.975Z","metadata":{"has_sponsors_listing":false},"html_url":"https://github.com/royriojas","funding_links":[],"total_stars":586,"followers":42,"following":31,"created_at":"2022-11-02T16:19:12.162Z","updated_at":"2025-03-14T04:32:40.975Z","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/royriojas","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/royriojas/repositories"},"tags":[]},"repo_metadata_updated_at":"2026-03-12T17:20:12.100Z","dependent_packages_count":128,"downloads":4428,"downloads_period":"last-month","dependent_repos_count":18613,"rankings":{"downloads":2.498963391922188,"dependent_repos_count":0.19801674034197525,"dependent_packages_count":0.3085314051339041,"stargazers_count":11.502962173591527,"forks_count":9.84983769086612,"docker_downloads_count":null,"average":4.871662280371143},"purl":"pkg:npm/precommit","advisories":[],"docker_usage_url":"https://docker.ecosyste.ms/usage/npm/precommit","docker_dependents_count":null,"docker_downloads_count":null,"usage_url":"https://repos.ecosyste.ms/usage/npm/precommit","dependent_repositories_url":"https://repos.ecosyste.ms/api/v1/usage/npm/precommit/dependencies","status":null,"funding_links":[],"critical":null,"issue_metadata":{"last_synced_at":"2025-08-16T06:42:26.282Z","issues_count":4,"pull_requests_count":10,"avg_time_to_close_issue":809.0,"avg_time_to_close_pull_request":5685.0,"issues_closed_count":2,"pull_requests_closed_count":1,"pull_request_authors_count":3,"issue_authors_count":3,"avg_comments_per_issue":1.25,"avg_comments_per_pull_request":0.2,"merged_pull_requests_count":1,"bot_issues_count":0,"bot_pull_requests_count":0,"past_year_issues_count":0,"past_year_pull_requests_count":1,"past_year_avg_time_to_close_issue":null,"past_year_avg_time_to_close_pull_request":null,"past_year_issues_closed_count":0,"past_year_pull_requests_closed_count":0,"past_year_pull_request_authors_count":1,"past_year_issue_authors_count":0,"past_year_avg_comments_per_issue":null,"past_year_avg_comments_per_pull_request":0.0,"past_year_bot_issues_count":0,"past_year_bot_pull_requests_count":0,"past_year_merged_pull_requests_count":0,"issues_url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/repositories/royriojas%2Fprecommit/issues","maintainers":[{"login":"royriojas","count":8,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/royriojas"}],"active_maintainers":[{"login":"royriojas","count":2,"url":"https://issues.ecosyste.ms/api/v1/hosts/GitHub/authors/royriojas"}]},"versions_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/precommit/versions","version_numbers_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/precommit/version_numbers","dependent_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/precommit/dependent_packages","related_packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/precommit/related_packages","codemeta_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/precommit/codemeta","maintainers":[{"uuid":"royriojas","login":"royriojas","name":null,"email":"royriojas@gmail.com","url":null,"packages_count":74,"html_url":"https://www.npmjs.com/~royriojas","role":null,"created_at":"2022-11-13T21:13:51.741Z","updated_at":"2022-11-13T21:13:51.741Z","packages_url":"https://packages.ecosyste.ms/api/v1/registries/npmjs.org/maintainers/royriojas/packages"}]}