git-kitchen-sink
TypeScript icon, indicating that this package has built-in type declarations

1.20.0 • Public • Published

git-kitchen-sink

Incorporate Git into your Electron application

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

To get started: npm install git-kitchen-sink --save

And then reference it in your application:

import { GitProcess, GitError, IGitResult } from 'git-kitchen-sink'
 
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

Readme

Keywords

none

Package Sidebar

Install

npm i git-kitchen-sink

Weekly Downloads

2

Version

1.20.0

License

MIT

Last publish

Collaborators

  • joshaber
  • niik
  • shiftkey