{"id":16302831,"url":"https://github.com/himenon/git-control-js","last_synced_at":"2026-05-18T17:05:32.494Z","repository":{"id":51430573,"uuid":"312438758","full_name":"Himenon/git-control-js","owner":"Himenon","description":"javascript git wrapper","archived":false,"fork":false,"pushed_at":"2021-05-11T22:54:26.000Z","size":804,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T03:03:20.408Z","etag":null,"topics":["git","javascript"],"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/Himenon.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-13T01:19:31.000Z","updated_at":"2021-01-13T12:41:49.000Z","dependencies_parsed_at":"2022-09-26T21:51:22.026Z","dependency_job_id":null,"html_url":"https://github.com/Himenon/git-control-js","commit_stats":null,"previous_names":["himenon/github-storage-js"],"tags_count":18,"template":false,"template_full_name":"Himenon/template-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himenon%2Fgit-control-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himenon%2Fgit-control-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himenon%2Fgit-control-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himenon%2Fgit-control-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Himenon","download_url":"https://codeload.github.com/Himenon/git-control-js/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248166945,"owners_count":21058480,"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":["git","javascript"],"created_at":"2024-10-10T20:59:05.118Z","updated_at":"2026-05-18T17:05:27.455Z","avatar_url":"https://github.com/Himenon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @himenon/git-control-js\n\nWrapper for using git commands in Node.js.\n\n## Install\n\n```\nyarn add @himenon/git-control-js\n```\n\n## Usage\n\n```ts\nimport * as GitControl from \"@himenon/git-control-js\";\n\nconst main = async () =\u003e {\n  const git = GitControl.Wrap.create(process.cwd());\n  await git.clone({\n    owner: \"Himenon\",\n    repo: \"git-control-js\",\n    branch: \"main\",\n    baseUrl: \"https://github.com\",\n    baseSsh: \"git@github.com\",\n    protocol: \"https\",\n    outputDir: process.cwd(),\n    authToken: \"\", // https://developer.github.com/apps/building-github-apps/authenticating-with-github-apps/#http-based-git-access-by-an-installation\n  });\n\n  const latestCommitDate = await git.getLatestCommitDate()\n  console.log(latestCommitDate);\n}\n\nmain().catch(error =\u003e {\n  console.error(error);\n  process.exit(1);\n})\n```\n\n## Development\n\n| scripts                   | description                                 |\n| :------------------------ | :------------------------------------------ |\n| `build`                   | typescript build and create proxy directory |\n| `clean`                   | clean up                                    |\n| `format:code`             | prettier                                    |\n| `format:yarn:lock`        | yarn.lock deduplicate                       |\n| `lerna:version:up`        | lerna version up                            |\n| `test`                    | execute test:depcruise, test:jest           |\n| `test:depcruise`          | dependency-cruiser's test                   |\n| `test:jest`               | jest test                                   |\n| `ts`                      | execute ts-node                             |\n| `release:github:registry` | publish github registry                     |\n| `release:npm:registry`    | publish npm registry                        |\n\n## Features\n\n- [Proxy Directory](https://himenon.github.io/docs/javascript/proxy-directory-design-pattern/)\n\n## Release\n\n- Automatic version updates are performed when merged into the `main` branch.\n\n## LICENCE\n\n[@himenon-git-control-js](https://github.com/Himenon/git-control-js)・MIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimenon%2Fgit-control-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhimenon%2Fgit-control-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimenon%2Fgit-control-js/lists"}