{"id":22180545,"url":"https://github.com/gh-conf/gh-conf-parse","last_synced_at":"2025-06-14T01:38:34.215Z","repository":{"id":44404526,"uuid":"188389141","full_name":"gh-conf/gh-conf-parse","owner":"gh-conf","description":"Parser for parsing information from github config file","archived":false,"fork":false,"pushed_at":"2022-07-11T09:38:14.000Z","size":95,"stargazers_count":1,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-28T17:18:26.590Z","etag":null,"topics":["gh-conf","github-parse","nodejs","parser"],"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":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"arshadkazmi42"}},"created_at":"2019-05-24T09:01:03.000Z","updated_at":"2022-07-10T15:55:56.000Z","dependencies_parsed_at":"2022-07-15T07:00:39.931Z","dependency_job_id":null,"html_url":"https://github.com/gh-conf/gh-conf-parse","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-conf%2Fgh-conf-parse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-conf%2Fgh-conf-parse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-conf%2Fgh-conf-parse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gh-conf%2Fgh-conf-parse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gh-conf","download_url":"https://codeload.github.com/gh-conf/gh-conf-parse/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227700405,"owners_count":17806365,"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":["gh-conf","github-parse","nodejs","parser"],"created_at":"2024-12-02T09:18:38.155Z","updated_at":"2024-12-02T09:18:39.070Z","avatar_url":"https://github.com/gh-conf.png","language":"JavaScript","funding_links":["https://github.com/sponsors/arshadkazmi42"],"categories":[],"sub_categories":[],"readme":"# gh-conf-parse\n\n[![Build](https://github.com/gh-conf/gh-conf-parse/actions/workflows/nodejs.yml/badge.svg)](https://github.com/gh-conf/gh-conf-parse/actions/workflows/nodejs.yml)\n[![Github Repo Size](https://img.shields.io/github/repo-size/gh-conf/gh-conf-parse.svg)](https://github.com/gh-conf/gh-conf-parse)\n[![LICENSE](https://img.shields.io/npm/l/@gh-conf/gh-conf-parse.svg)](https://github.com/gh-conf/gh-conf-parse/LICENSE)\n[![NPM Downloads](https://img.shields.io/npm/dt/@gh-conf/gh-conf-parse.svg)](https://www.npmjs.com/package/@gh-conf/gh-conf-parse)\n[![NPM Version](https://img.shields.io/npm/v/@gh-conf/gh-conf-parse.svg)](https://www.npmjs.com/package/@gh-conf/gh-conf-parse)\n[![Contributors](https://img.shields.io/github/contributors/gh-conf/gh-conf-parse.svg)](https://github.com/gh-conf/gh-conf-parse/graphs/contributors)\n[![Commit](https://img.shields.io/github/last-commit/gh-conf/gh-conf-parse.svg)](https://github.com/gh-conf/gh-conf-parse/commits/master)\n\nParser for parsing information from github config file\n\n## Install\n\n```\nnpm install @gh-conf/gh-conf-parse\n```\n\n## Usage\n\n```js\nconst { ParseConfig, UserRepo } = require('@gh-conf/gh-conf-parse');\n\nconst CurrConfig = ParseConfig();\n\n// Output\n// {\n//    core:{\n//       repositoryformatversion:'0',\n//       filemode:'true',\n//       bare:'false',\n//       logallrefupdates:'true',\n//       ignorecase:'true',\n//       precomposeunicode:'true'\n//    },\n//    'remote \"origin\"':{\n//       url:'https://github.com/gh-conf/gh-conf-parse.git',\n//       fetch:'+refs/heads/*:refs/remotes/origin/*'\n//    },\n//    'branch \"master\"':{\n//       remote:'origin',\n//       merge:'refs/heads/master'\n//    }\n// }\n\n\nconst userRepo = UserRepo();\n\n// Output\n// {\n//   repository:'gh-conf-parse',\n//   username:'gh-conf'\n// }\n\n```\n\n## API\n\n#### `ParseConfig`\n\n- Returns complete git config as JSON\n\n#### `UserRepo`\n\n- Returns repo owner name and repository name\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-parse/issues/new).\n\nRead our contributing [guide](CONTRIBUTING.md) to get 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 🙌\n\n\u003ca href=\"https://github.com/arshadkazmi42\"\u003e\u003cimg src=\"https://github.com/arshadkazmi42.png\" width=\"30\" /\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh-conf%2Fgh-conf-parse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgh-conf%2Fgh-conf-parse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgh-conf%2Fgh-conf-parse/lists"}