dugite
Elegant bindings for Git
Last updated 14 days ago by iamwillshepherd .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install dugite 
SYNC missed versions from official npm registry.

Dugite - JS bindings for Git

Greenkeeper badge

This project provides bindings for Node applications to interact with Git repositories, using the same command line interface that core Git offers.

The source is in TypeScript, but can be consumed by any JavaScript application.

Getting Started

Add it to your project:

> npm install dugite --save

Then reference it in your application:

import { GitProcess, GitError, IGitResult } from 'dugite'

const pathToRepository = 'C:/path/to/git/repository/'

const result = await GitProcess.exec([ 'status' ], pathToRepository)
if (result.exitCode === 0) {
  const output = result.stdout
  // do some things with the output
} else {
  const error = result.stderr
  // error handling
}

Features

  • make it easy to work with Git repositories
  • use the same commands as you would in a shell
  • access to the full set of commands, options and formatting that Git core uses
  • access to the latest features of Git

Supported Platforms

  • Windows 7 and later
  • macOS 10.9 and up
  • Linux (tested on Ubuntu Precise/Trusty and Fedora 24)

Status

This project is under active development for Git-related projects at GitHub. This will stabilize as this library gets more usage in production, and is open to external contributions that align with the project's goals.

If you are interested in getting involved with this project, refer to the CONTRIBUTING.md file for instructions and the documentation sections for more information about the project.

Roadmap

As this is under active development, the roadmap is also subject to change. Some ideas:

  • authentication support in-the-box
  • make environment setup easier to override
  • API additions for common tasks such as parsing output
  • error handling improvements

Current Tags

  • 1.78.0                                ...           latest (14 days ago)

58 Versions

  • 1.78.0                                ...           14 days ago
  • 1.77.0 [deprecated]           ...           14 days ago
  • 1.76.0                                ...           23 days ago
  • 1.75.0                                ...           24 days ago
  • 1.74.0                                ...           a month ago
  • 1.73.0                                ...           2 months ago
  • 1.72.0                                ...           2 months ago
  • 1.71.0                                ...           2 months ago
  • 1.70.0                                ...           2 months ago
  • 1.69.0                                ...           3 months ago
  • 1.68.0                                ...           3 months ago
  • 1.67.0                                ...           4 months ago
  • 1.66.0                                ...           5 months ago
  • 1.65.0                                ...           5 months ago
  • 1.64.0                                ...           5 months ago
  • 1.63.0                                ...           6 months ago
  • 1.62.0                                ...           6 months ago
  • 1.61.0                                ...           7 months ago
  • 1.60.0                                ...           7 months ago
  • 1.59.0                                ...           7 months ago
  • 1.58.0                                ...           8 months ago
  • 1.57.0                                ...           9 months ago
  • 1.56.0                                ...           9 months ago
  • 1.55.0                                ...           9 months ago
  • 1.54.0                                ...           9 months ago
  • 1.53.0                                ...           a year ago
  • 1.52.0                                ...           a year ago
  • 1.51.0                                ...           a year ago
  • 1.50.0                                ...           a year ago
  • 1.49.0                                ...           a year ago
  • 1.48.0                                ...           a year ago
  • 1.47.0                                ...           a year ago
  • 1.46.0                                ...           a year ago
  • 1.45.0                                ...           a year ago
  • 1.44.0                                ...           a year ago
  • 1.43.0                                ...           a year ago
  • 1.42.0                                ...           a year ago
  • 1.41.0                                ...           a year ago
  • 1.40.0                                ...           a year ago
  • 1.39.0                                ...           a year ago
  • 1.38.0                                ...           a year ago
  • 1.37.0                                ...           a year ago
  • 1.36.0                                ...           a year ago
  • 1.35.0                                ...           a year ago
  • 1.34.0                                ...           a year ago
  • 1.33.0                                ...           a year ago
  • 1.32.0                                ...           a year ago
  • 1.31.0                                ...           a year ago
  • 1.30.0                                ...           a year ago
  • 1.29.0                                ...           a year ago
  • 1.28.0                                ...           a year ago
  • 1.27.0                                ...           a year ago
  • 1.26.0                                ...           a year ago
  • 1.25.0                                ...           2 years ago
  • 1.24.0                                ...           2 years ago
  • 1.23.0                                ...           2 years ago
  • 1.22.0                                ...           2 years ago
  • 1.21.0                                ...           2 years ago
Downloads
Today 0
This Week 15
This Month 86
Last Day 4
Last Week 28
Last Month 158
Dependencies (6)
Dev Dependencies (18)

Copyright 2014 - 2018 © taobao.org |