Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ecrmnn/gh-commit
Fastest way to commit new files to Github
https://github.com/ecrmnn/gh-commit
axios commit github github-api
Last synced: 19 days ago
JSON representation
Fastest way to commit new files to Github
- Host: GitHub
- URL: https://github.com/ecrmnn/gh-commit
- Owner: ecrmnn
- License: mit
- Created: 2017-02-12T11:18:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-15T19:45:37.000Z (almost 8 years ago)
- Last Synced: 2024-05-01T21:57:59.690Z (8 months ago)
- Topics: axios, commit, github, github-api
- Language: JavaScript
- Homepage: https://npmjs.com/gh-commit
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# gh-commit
> Fastest way of committing new files to Github[![Travis](https://img.shields.io/travis/ecrmnn/gh-commit.svg?style=flat-square)](https://travis-ci.org/ecrmnn/gh-commit'.svg?branch=master)
[![npm version](https://img.shields.io/npm/v/gh-commit.svg?style=flat-square)](http://badge.fury.io/js/gh-commit')
[![npm downloads](https://img.shields.io/npm/dm/gh-commit.svg?style=flat-square)](http://badge.fury.io/js/gh-commit')
[![npm license](https://img.shields.io/npm/l/gh-commit.svg?style=flat-square)](http://badge.fury.io/js/gh-commit')### Installation
```bash
npm install gh-commit --save
```### Usage
```js
const git = require('gh-commit');git.config.repo = {
author: 'github username or organization name',
name: 'name-of-repository'
};git.config.auth = {
username: 'github username',
password: 'github password or access token'
}git.commit([{
path: 'hello.txt',
content: 'hello from hello.txt'
}, {
path: 'xoxo.txt',
content: 'hello from xoxo.txt'
}])
.then(() => {
// Do stuff
})
.catch(err => console.log(err));
```### License
MIT © [Daniel Eckermann](http://danieleckermann.com)