1.0.1 • Published 7 years ago

gh-commit v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

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

1.0.1

7 years ago

1.0.0

7 years ago