Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dugite

Package Overview
Dependencies
Maintainers
3
Versions
126
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dugite

Elegant bindings for Git

  • 1.22.0
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

dugite

Elegant Node bindings for Git

This is a skunkworks project to make using Git in your Electron application.

To get started: npm install dugite --save

And 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 version = result.stdout
  // TODO: do some things with version
} else {
  const error = result.stderr
  // TODO: error handling
}

Current features:

  • package Git within your application
  • make it easy to execute Git commands
  • macOS and Window support

Potential Roadmap:

  • an API for common Git operations
  • Linux support
  • handle authentication and environment setup
  • ???

Contributing

After cloning down this repository, run:

npm install

And then you can create the package yourself:

npm pack

FAQs

Package last updated on 15 Mar 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc