nodegit-wrapper
wrapper to expose nodegit as a dual-mode package
Table of Contents
Usage
Installation
$ npm install @form8ion/nodegit-wrapper --save-prod
Example
import {Branch, Remote, Repository} from '@form8ion/nodegit-wrapper';
(async () => {
const repository = await Repository.open(process.cwd());
await Remote.list(repository);
await Branch.setUpstream(
await Branch.lookup(repository, 'main', Branch.BRANCH.LOCAL),
'origin/master'
);
})();
Contributing
Dependencies
$ nvm install
$ npm install
Verification
$ npm test