{"id":22982459,"url":"https://github.com/niradler/git-content","last_synced_at":"2026-04-09T02:02:10.346Z","repository":{"id":76103905,"uuid":"253616281","full_name":"niradler/git-content","owner":"niradler","description":"get, create, update and delete files inside github repo.","archived":false,"fork":false,"pushed_at":"2020-06-24T20:01:27.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-31T23:53:34.595Z","etag":null,"topics":["files","git","npm"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/git-content","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/niradler.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-04-06T21:10:44.000Z","updated_at":"2020-06-24T20:01:27.000Z","dependencies_parsed_at":null,"dependency_job_id":"22364985-af2e-4ff4-8b76-e5f3043b6d65","html_url":"https://github.com/niradler/git-content","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/niradler/git-content","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niradler%2Fgit-content","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niradler%2Fgit-content/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niradler%2Fgit-content/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niradler%2Fgit-content/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/niradler","download_url":"https://codeload.github.com/niradler/git-content/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/niradler%2Fgit-content/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31581864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"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":["files","git","npm"],"created_at":"2024-12-15T02:18:35.077Z","updated_at":"2026-04-09T02:02:10.341Z","avatar_url":"https://github.com/niradler.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# git-content\n\nget, create, update and delete action on files inside github repo.\n\n## Installation\n\n```bash\nnpm i -g git-content\n```\n\n### Usage\n\n#### CLI\n\n```bash\ngit-content help\n\ngit-content create --path=\"test3.json\" --content=\"awesome content\" --auth=\"XXXXXXXXXXX\" --owner=\"niradler\" --branch=\"master\" --repo=\"config\"\n\ngit-content get --path=\"test3.json\" --auth=\"XXXXXXXXXXX\" --owner=\"niradler\" --branch=\"master\" --repo=\"config\"\n\ngit-content update --path=\"test3.json\" --content=\"new awesome content\" --auth=\"XXXXXXXXXXX\" --owner=\"niradler\" --branch=\"master\" --repo=\"config\"\n\ngit-content delete --path=\"test3.json\" --auth=\"XXXXXXXXXXX\" --owner=\"niradler\" --branch=\"master\" --repo=\"config\"\n```\n\n#### Code\n\n```js\nconst { Store, Model } = require(\"git-content\");\n\nconst store = new Store({ owner, repo, auth, branch });\nconst model = new Model(store, path);\nconst { text } = await model.get();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniradler%2Fgit-content","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniradler%2Fgit-content","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniradler%2Fgit-content/lists"}