{"id":22180547,"url":"https://github.com/gh-conf/gh-conf-read","last_synced_at":"2025-08-02T01:14:19.627Z","repository":{"id":34052967,"uuid":"167795371","full_name":"gh-conf/gh-conf-read","owner":"gh-conf","description":"Reads git config file","archived":false,"fork":false,"pushed_at":"2022-03-24T04:22:29.000Z","size":99,"stargazers_count":3,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-29T10:23:28.838Z","etag":null,"topics":["conf","config","config-read","gh","gh-config","git-conf","github","read"],"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/gh-conf.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-01-27T10:18:13.000Z","updated_at":"2023-12-27T13:55:13.000Z","dependencies_parsed_at":"2022-08-08T00:00:18.327Z","dependency_job_id":null,"html_url":"https://github.com/gh-conf/gh-conf-read","commit_stats":null,"previous_names":["arshadkazmi42/gh-conf-read"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/gh-conf/gh-conf-read","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-conf%2Fgh-conf-read","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-conf%2Fgh-conf-read/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-conf%2Fgh-conf-read/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-conf%2Fgh-conf-read/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gh-conf","download_url":"https://codeload.github.com/gh-conf/gh-conf-read/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-conf%2Fgh-conf-read/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267202556,"owners_count":24052269,"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-07-26T02:00:08.937Z","response_time":62,"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":["conf","config","config-read","gh","gh-config","git-conf","github","read"],"created_at":"2024-12-02T09:18:38.293Z","updated_at":"2025-08-02T01:14:19.583Z","avatar_url":"https://github.com/gh-conf.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/gh-conf","https://www.patreon.com/bePatron?u=15454240"],"categories":[],"sub_categories":[],"readme":"# gh-conf-read\n\n[![Build Status](https://travis-ci.com/gh-conf/gh-conf-read.svg?branch=master)](https://travis-ci.com/gh-conf/gh-conf-read)\n[![Github Repo Size](https://img.shields.io/github/repo-size/gh-conf/gh-conf-read.svg)](https://github.com/gh-conf/gh-conf-read)\n[![Contributors](https://img.shields.io/github/contributors/gh-conf/gh-conf-read.svg)](https://github.com/gh-conf/gh-conf-read/graphs/contributors)\n[![Commit](https://img.shields.io/github/last-commit/gh-conf/gh-conf-read.svg)](https://github.com/gh-conf/gh-conf-read/commits/master)\n[![NPM Version](https://img.shields.io/npm/v/@gh-conf/gh-conf-read.svg)](https://www.npmjs.com/package/@gh-conf/gh-conf-read)\n\nIt reads the github config file and returns it contents.\nIt needs respository path as input to read the config.\n\n\u003e Give us a :star: if you like our work :heart:\n\n\u003ca href=\"https://www.buymeacoffee.com/gh-conf\" target=\"_blank\"\u003e\u003cimg src=\"https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png\" alt=\"Buy Me A Coffee\" style=\"height: auto !important;width: auto !important;\" \u003e\u003c/a\u003e\n\u003ca href=\"https://www.patreon.com/bePatron?u=15454240\" target=\"_blank\"\u003e\u003cimg src=\"https://c5.patreon.com/external/logo/become_a_patron_button.png\" alt=\"Become a Patron!\" height=\"40\"\u003e\u003c/a\u003e\n\nPlease consider donating, if you like my work\n\n## Install\n\n```\n$ npm install @gh-conf/gh-conf-read\n```\n\n## Usage\n\n```javascript\nconst { readConf } = require('@gh-conf/gh-conf-read');\n\n(async () =\u003e {\n  try {\n    const configContent = await readConf('./gh-conf-read');\n    console.log(configContent);\n    /**\n     * [core]\n     *     repositoryformatversion = 0\n     *     filemode = true\n     *     bare = false\n     *     logallrefupdates = true\n     * [remote \"origin\"]\n     *     url = git@github.com:gh-conf/gh-conf-read\n     *     fetch = +refs/heads/*:refs/remotes/origin/*\n     * [branch \"master\"]\n     *   remote = origin\n     *   merge = refs/heads/master\n     * [user]\n     *     name = Arshad Kazmi\n     *     email = arshadkazmi42@gmail.com\n     **/\n  } catch (error) {\n    console.log(error);\n  }\n})();\n\n\n\n```\n\n## Contributing\n\nInterested in contributing to this project?\nYou can log any issues or suggestion related to this library [here](https://github.com/gh-conf/gh-conf-read/issues/new)\n\nRead our contributing [guide](CONTRIBUTING.md) on getting started with contributing to the codebase\n\n## Contributors\n\nThank you to all the contributors who have helped us in making this project better :raised_hands:\n\n\u003ca href=\"https://github.com/arshadkazmi42\"\u003e\u003cimg src=\"https://github.com/arshadkazmi42.png\" width=\"30\" /\u003e\u003c/a\u003e\u003ca href=\"https://github.com/oshanz\"\u003e\u003cimg src=\"https://github.com/oshanz.png\" width=\"30\" /\u003e\u003c/a\u003e\u003ca href=\"https://github.com/aldyadk\"\u003e\u003cimg src=\"https://github.com/aldyadk.png\" width=\"30\" /\u003e\u003c/a\u003e\u003ca href=\"https://github.com/p85\"\u003e\u003cimg src=\"https://github.com/p85.png\" width=\"30\" /\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh-conf%2Fgh-conf-read","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgh-conf%2Fgh-conf-read","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh-conf%2Fgh-conf-read/lists"}