@form8ion/nodegit-wrapper
v1.1.0
Published
wrapper to expose nodegit as a dual-mode package
Downloads
32
Readme
nodegit-wrapper
wrapper to expose nodegit as a dual-mode package
Table of Contents
Usage
Installation
$ npm install @form8ion/nodegit-wrapper --save-prodExample
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 installVerification
$ npm test