gh-commit

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i gh-commit

Weekly Downloads

0

Version

1.0.1

License

MIT

Last publish

Collaborators

  • ecrmnn