1.1.0 • Published 2 years ago

@form8ion/nodegit-wrapper v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

nodegit-wrapper

wrapper to expose nodegit as a dual-mode package

Node CI Workflow Status

Table of Contents

Usage

MIT license npm Try @form8ion/nodegit-wrapper on RunKit node

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

PRs Welcome Commitizen friendly Conventional Commits semantic-release: angular Renovate

Dependencies

$ nvm install
$ npm install

Verification

$ npm test