'use strict'; var github = require('./github'); var api = github({ username: 'YOUR_USERNAME', token: 'API_TOKEN', // created here https://github.com/settings/applications#personal-access-tokens reponame: 'BRANCH_NAME' }); api.commit([{ path: 'test/file1.md', content: '# File1' }, { path: 'test/file2.md', content: '# File2' }], 'test commit via api'); // returns a promise