Publishes a file to a repository through the GitHub Contents API
Requires io.js or Node 0.12
npm install github-publish --save
Stable, but not feature complete
Currently missing support for deletes.
var GitHubPublisher = ;var publisher = 'token123' 'voxpelli' 'voxpelli.github.com';publisher;
usernameof the owner of the repository to publish to and the name of the repository itself as
Promisethat resolves with either an object containing the
shaof the existing file or with
falseif no such file exists in the repository
repoof the publisher object.
contentshould be either a
Buffer. Returns a
Promisewhich resolves to the
shaof the created object on success and to
falseon failure (failure is likely caused by a collision with a pre-existing file, as long as one haven't specified that it should be overridden).