Skip to content

ecrmnn/gh-commit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gh-commit

Fastest way of committing new files to Github

Travis npm version npm downloads npm license

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

Releases

No releases published

Packages

No packages published