gh-commit
v1.0.1
Published
Fastest way of committing new files to Github
Downloads
3
Readme
gh-commit
Fastest way of committing new files to Github
Installation
npm install gh-commit --save
Usage
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