{"id":17279810,"url":"https://github.com/darrenklein/git-to-json","last_synced_at":"2026-05-03T18:33:54.184Z","repository":{"id":48034722,"uuid":"121078119","full_name":"darrenklein/git-to-json","owner":"darrenklein","description":"Read your project's latest git commit info and write it to exported JSON","archived":false,"fork":false,"pushed_at":"2021-08-10T17:38:45.000Z","size":120,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-11T16:38:28.693Z","etag":null,"topics":["commit","git","node","nodejs","npm","npm-module"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/darrenklein.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-02-11T03:02:00.000Z","updated_at":"2020-07-30T12:49:39.000Z","dependencies_parsed_at":"2022-08-12T17:11:03.478Z","dependency_job_id":null,"html_url":"https://github.com/darrenklein/git-to-json","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/darrenklein/git-to-json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrenklein%2Fgit-to-json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrenklein%2Fgit-to-json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrenklein%2Fgit-to-json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrenklein%2Fgit-to-json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/darrenklein","download_url":"https://codeload.github.com/darrenklein/git-to-json/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/darrenklein%2Fgit-to-json/sbom","scorecard":{"id":323150,"data":{"date":"2025-08-11","repo":{"name":"github.com/darrenklein/git-to-json","commit":"bd92e9c95d849a45e58d9145dea37da4c4a4bbae"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.5,"checks":[{"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":"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":"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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"Code-Review","score":0,"reason":"Found 0/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":"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":"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":"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":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"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":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"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":"Vulnerabilities","score":0,"reason":"16 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-18T01:51:58.099Z","repository_id":48034722,"created_at":"2025-08-18T01:51:58.099Z","updated_at":"2025-08-18T01:51:58.099Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32579858,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T06:36:36.687Z","status":"ssl_error","status_checked_at":"2026-05-03T06:36:09.306Z","response_time":103,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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"}},"keywords":["commit","git","node","nodejs","npm","npm-module"],"created_at":"2024-10-15T09:18:40.639Z","updated_at":"2026-05-03T18:33:54.152Z","avatar_url":"https://github.com/darrenklein.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-to-json\n\u003e Read your project's latest git commit info and write it to JSON\n\n\u003e Upgrading from v1.X.X to v2.X.X? See the [upgrade guide]\n\n[git-to-json] is a simple NPM module designed to retrieve the info for your project's most recent git commit and write it to a file in JSON format as an exportable module.\n\n## Installation\n\n#### NPM\n\n``` SH\nnpm install --save git-to-json\n```\n\n## Usage\n\nThe default behavior of git-to-json is to read the info from your most recent git commit and write it to the file `git-commit-info.js`, adjacent to your `package.json` file.\n\nExample of a `git-commit-info.js` file:\n\n``` JS\nmodule.exports = {\"commit\":\"5aqfaa6741871zz5e67683a012a0062bdbd46a8z\",\"author\":\"Foo Bar \u003cfoo@bar.com\u003e\",\"date\":\"Sun Feb 11 13:37:29 2018 -0500\",\"message\":\"My cool git commit\"}\n```\n\nTo run git-to-json, simply include the following command in the NPM script of your choice:\n\n``` JSON\ngit-to-json\n```\n\nfor example, in your project's `package.json` file:\n\n``` JSON\n\"scripts\": {\n  \"start\": \"git-to-json \u0026\u0026 node index.js\"\n}\n```\n\nIt probably goes without saying, but this app requires that it is run in a directory that has been established as a git repository.\n\n### Options\n\nAs noted, the default behavior is to create a file named `git-commit-info.js` adjacent to your `package.json` file. You can also provide an optional directory and customize the file's name and content with the following options:\n\n``` JSON\n--dir \u003cpath/to/dir\u003e     specify the relative file path\n--name \u003cfilename.js\u003e    specify the name of the file\n--upcasekeys            set the keys of the exported JSON as uppercase\n```\n\nFor example:\n\n``` JSON\ngit-to-json --dir gitignore --name commit-info\n```\n\nwill result in `gitignore/commit-info.js`.\n\nAs of v2.X.X, you can provide a file path of any depth:\n\n``` JSON\ngit-to-json --dir gitignore/git-info/latest --upcasekeys\n```\n\nwill result in `gitignore/git-info/latest/git-commit-info.js` with uppercased keys - \"COMMIT\", etc...\n\nIf the directory provided does not exist, git-to-json will create it. If it does exist, git-to-json will output the file to the existing directory.\n\n## Notes\n\nThis module has been formatted according to ESLint's [eslint-config-airbnb-base] rules.\n\n[upgrade guide]: upgrade_guides/v1-to-v2-upgrade-guide.md\n[git-to-json]: https://www.npmjs.com/package/git-to-json\n[eslint-config-airbnb-base]: https://www.npmjs.com/package/eslint-config-airbnb-base","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarrenklein%2Fgit-to-json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdarrenklein%2Fgit-to-json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdarrenklein%2Fgit-to-json/lists"}