{"id":15055513,"url":"https://github.com/omrilotan/async-git","last_synced_at":"2025-07-14T06:39:01.991Z","repository":{"id":35267206,"uuid":"216990361","full_name":"omrilotan/async-git","owner":"omrilotan","description":"👾 Retrieve data from current git repository","archived":false,"fork":false,"pushed_at":"2023-06-19T03:57:20.000Z","size":40,"stargazers_count":3,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-24T05:11:25.499Z","etag":null,"topics":["async","git","nodejs"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/omrilotan.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":"2019-10-23T07:04:35.000Z","updated_at":"2023-04-30T20:08:16.000Z","dependencies_parsed_at":"2024-06-19T13:33:38.454Z","dependency_job_id":null,"html_url":"https://github.com/omrilotan/async-git","commit_stats":{"total_commits":24,"total_committers":6,"mean_commits":4.0,"dds":0.6666666666666667,"last_synced_commit":"ce4063a906e597bd35de88561d791e58be3087d6"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omrilotan%2Fasync-git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omrilotan%2Fasync-git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omrilotan%2Fasync-git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/omrilotan%2Fasync-git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/omrilotan","download_url":"https://codeload.github.com/omrilotan/async-git/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247981200,"owners_count":21027883,"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":["async","git","nodejs"],"created_at":"2024-09-24T21:43:34.509Z","updated_at":"2025-04-10T03:52:49.862Z","avatar_url":"https://github.com/omrilotan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# async-git [![](https://img.shields.io/npm/v/async-git.svg)](https://www.npmjs.com/package/async-git)\n\n## 👾 Retrieve data from current git repository\n\n[![](https://github.com/omrilotan/async-git/workflows/publish/badge.svg)](https://github.com/omrilotan/async-git/actions) [![](https://img.shields.io/badge/source--000000.svg?logo=github\u0026style=social)](https://github.com/omrilotan/async-git)\n\n\\* Getter properties are async (getters) [more on async properties](https://dev.to/omrilotan/javascript-apis-with-async-properties-5ag7)\n\n```js\nconst git = require('async-git');\n\n`${await git.author} committed ${await git.message}` // Omri committed Some changes\n```\n\n## Getters\n\n| Property | Type | Description | Example\n| - | - | - | -\n| `author` | string | Author name of the last commit | `await git.author`\n| `body` | string | Most recent commit message body | `await git.body`\n| `branch` | string | Current branch name | `await git.branch`\n| `changed` | string[] | List of files changed in last commit | `await git.changed`\n| `comitter` | string | Comitter name of the last commit | `await git.comitter`\n| `date` | Date | Date of the last change | `await git.date`\n| `email` | string | Author email of the last commit | `await git.email`\n| `message` | string | Most recent commit full message (subject and body) | `await git.message`\n| `name` | string | Project name | `await git.name`\n| `origin` | string | Remote origin URL | `await git.origin`\n| `owner` | string | Remote repository owner | `await git.owner`\n| `sha` | string | Unique identifier of the last commit | `await git.sha`\n| `short` | string | 7 Character Unique identifier of the last commit | `await git.short`\n| `staged` | string[] | List of staged files | `await git.staged`\n| `subject` | string | Most recent commit subject | `await git.subject`\n| `tags` | string[] | List of tags | `await git.tags`\n| `unadded` | string[] | List of files that would be added or removed by 'git add' | `await git.unadded`\n| `unstaged` | string[] | List of unstaged files | `await git.unstaged`\n| `untracked` | string[] | List of untracked files | `await git.untracked`\n| `version` | string | Get git version (semver) | `await git.version`\n\n## Functions\n\n### `modified`\nGet the last modified date of a file\n```js\nawait modified('./index.js')\n```\n\n| Argument | Return value\n| - | -\n| `{string}` Path to file | `{Date}` Last modified date\n\n### `reset`\nReset current HEAD to the specified destination\n```js\nawait git.reset(1) // reset number of commit back\nawait git.reset('f5db755') // reset to specific SHA ID\n```\n\n| Argument | Return value\n| - | -\n| `{string\\|number}` State ID | `{void}` nothing\n\n### `tag`\nCreate a tag using the last commit message\n```js\nawait git.tag('1.2.3')\n```\n\n| Argument | Return value\n| - | -\n| `{string}` Version | `{void}` nothing\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomrilotan%2Fasync-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fomrilotan%2Fasync-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fomrilotan%2Fasync-git/lists"}