GithubHelp home page GithubHelp logo

kryndex / dugite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from desktop/dugite

0.0 1.0 0.0 218 KB

Elegant bindings for working with Git in your Node applications

License: MIT License

TypeScript 88.60% JavaScript 11.17% Batchfile 0.14% Shell 0.09%

dugite's Introduction

Dugite - JS bindings for Git

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

dugite's People

Contributors

binarymuse avatar joshaber avatar niik avatar shiftkey avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.