{"id":17959533,"url":"https://github.com/ecrmnn/gh-commit","last_synced_at":"2026-04-22T21:31:55.446Z","repository":{"id":57250828,"uuid":"81720631","full_name":"ecrmnn/gh-commit","owner":"ecrmnn","description":"Fastest way to commit new files to Github","archived":false,"fork":false,"pushed_at":"2017-03-15T19:45:37.000Z","size":5,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-01T21:57:59.690Z","etag":null,"topics":["axios","commit","github","github-api"],"latest_commit_sha":null,"homepage":"https://npmjs.com/gh-commit","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/ecrmnn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-02-12T11:18:13.000Z","updated_at":"2017-02-14T23:09:27.000Z","dependencies_parsed_at":"2022-08-24T16:52:08.525Z","dependency_job_id":null,"html_url":"https://github.com/ecrmnn/gh-commit","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecrmnn%2Fgh-commit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecrmnn%2Fgh-commit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecrmnn%2Fgh-commit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ecrmnn%2Fgh-commit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ecrmnn","download_url":"https://codeload.github.com/ecrmnn/gh-commit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247052225,"owners_count":20875679,"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":["axios","commit","github","github-api"],"created_at":"2024-10-29T11:03:36.697Z","updated_at":"2026-04-22T21:31:50.422Z","avatar_url":"https://github.com/ecrmnn.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gh-commit\n\u003e Fastest way of committing new files to Github\n\n[![Travis](https://img.shields.io/travis/ecrmnn/gh-commit.svg?style=flat-square)](https://travis-ci.org/ecrmnn/gh-commit'.svg?branch=master)\n[![npm version](https://img.shields.io/npm/v/gh-commit.svg?style=flat-square)](http://badge.fury.io/js/gh-commit')\n[![npm downloads](https://img.shields.io/npm/dm/gh-commit.svg?style=flat-square)](http://badge.fury.io/js/gh-commit')\n[![npm license](https://img.shields.io/npm/l/gh-commit.svg?style=flat-square)](http://badge.fury.io/js/gh-commit')\n\n### Installation\n```bash\nnpm install gh-commit --save\n```\n\n### Usage\n```js\nconst git = require('gh-commit');\n\ngit.config.repo = {\n  author: 'github username or organization name',\n  name: 'name-of-repository'\n};\n\ngit.config.auth = {\n  username: 'github username',\n  password: 'github password or access token'\n}\n\ngit.commit([{\n    path: 'hello.txt',\n    content: 'hello from hello.txt'\n  }, {\n    path: 'xoxo.txt',\n    content: 'hello from xoxo.txt'\n  }])\n  .then(() =\u003e {\n    // Do stuff\n  })\n  .catch(err =\u003e console.log(err));\n```\n\n### License\nMIT © [Daniel Eckermann](http://danieleckermann.com)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecrmnn%2Fgh-commit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fecrmnn%2Fgh-commit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fecrmnn%2Fgh-commit/lists"}