{"id":21994156,"url":"https://github.com/coderaiser/parse-git-index","last_synced_at":"2025-08-10T08:50:39.721Z","repository":{"id":57319346,"uuid":"210335726","full_name":"coderaiser/parse-git-index","owner":"coderaiser","description":"parse git index","archived":false,"fork":false,"pushed_at":"2023-10-20T14:40:48.000Z","size":14,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-14T01:07:35.264Z","etag":null,"topics":["git","index","javascript","nodejs","parse"],"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/coderaiser.png","metadata":{"files":{"readme":"README.md","changelog":"ChangeLog","contributing":null,"funding":".github/FUNDING.yml","license":null,"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},"funding":{"github":"coderaiser","patreon":"coderaiser","open_collective":"cloudcmd","ko_fi":"coderaiser"}},"created_at":"2019-09-23T11:16:01.000Z","updated_at":"2023-12-02T20:28:35.000Z","dependencies_parsed_at":"2024-02-01T18:10:18.740Z","dependency_job_id":null,"html_url":"https://github.com/coderaiser/parse-git-index","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/coderaiser/parse-git-index","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fparse-git-index","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fparse-git-index/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fparse-git-index/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fparse-git-index/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coderaiser","download_url":"https://codeload.github.com/coderaiser/parse-git-index/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coderaiser%2Fparse-git-index/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269579630,"owners_count":24441369,"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-08-09T02:00:10.424Z","response_time":111,"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"}},"keywords":["git","index","javascript","nodejs","parse"],"created_at":"2024-11-29T21:07:41.011Z","updated_at":"2025-08-10T08:50:39.687Z","avatar_url":"https://github.com/coderaiser.png","language":"JavaScript","funding_links":["https://github.com/sponsors/coderaiser","https://patreon.com/coderaiser","https://opencollective.com/cloudcmd","https://ko-fi.com/coderaiser"],"categories":[],"sub_categories":[],"readme":"# Parse Git Index [![License][LicenseIMGURL]][LicenseURL] [![NPM version][NPMIMGURL]][NPMURL] [![Build Status][BuildStatusIMGURL]][BuildStatusURL] [![Coverage][CoverageIMGURL]][CoverageURL]\n\nParse [git index file](https://github.com/git/git/blob/v2.23.0/Documentation/technical/index-format.txt).\n\n## Install\n\n```\nnpm i parse-git-index\n```\n\n## How to use?\n\n```js\nconst {readFileSync} = require('fs');\nconst parse = require('parse-git-index');\nconst index = readFileSync('./.git/index');\n\nparse(index);\n// returns\n({\n    header: {\n        signature: 'DIRC',\n        version: '0x2',\n        count: '0x1',\n    },\n    entries: [{\n        ctime: '0x5d8893b223ad1e53',\n        mtime: '0x5d8893b223ad1e53',\n        dev: '0xfd01',\n        ino: '0x8e850',\n        mode: '0x81a4',\n        uid: '0x3e8',\n        gid: '0x3e8',\n        fileSize: '0x9b',\n        objectId: '0xaa148880272ec1d0488346da70e2dad451e8d3bf',\n        filePathSize: '0xe',\n        filePath: '.eslintrc.json',\n    }],\n});\n```\n\n## License\n\nMIT\n\n[NPMIMGURL]: https://img.shields.io/npm/v/parse-git-index.svg?style=flat\u0026longCache=true\n[BuildStatusIMGURL]: https://img.shields.io/travis/coderaiser/parse-git-index/master.svg?style=flat\u0026longCache=true\n[LicenseIMGURL]: https://img.shields.io/badge/license-MIT-317BF9.svg?style=flat\u0026longCache=true\n[NPMURL]: https://npmjs.org/package/parse-git-index \"npm\"\n[BuildStatusURL]: https://travis-ci.org/coderaiser/parse-git-index \"Build Status\"\n[LicenseURL]: https://tldrlegal.com/license/mit-license \"MIT License\"\n[CoverageURL]: https://coveralls.io/github/coderaiser/parse-git-index?branch=master\n[CoverageIMGURL]: https://coveralls.io/repos/coderaiser/parse-git-index/badge.svg?branch=master\u0026service=github\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fparse-git-index","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoderaiser%2Fparse-git-index","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoderaiser%2Fparse-git-index/lists"}