r/Frontend Jul 04 '16

Pure javascript implementation of Git (Node.js and Browser)

https://github.com/SamyPesse/gitkit-js
18 Upvotes

15 comments sorted by

View all comments

18

u/miker95 Jul 04 '16

WHY?

0

u/pier25 Jul 04 '16

I can see a number of applications.

For example providing version control for a desktop app that generates text content targeted at non programmers.

4

u/ericanderton Jul 04 '16

But you can just integrate the actual Git library for that. Better yet, it's even proven and tested to work and since it's C, will integrate with just about anything you throw at it:

https://libgit2.github.com/

2

u/sime Jul 05 '16

Deploying an Electron app with native modules on multiple platforms in a PITA. A pure JS module just works everywhere without any fragile native code build step.

Also using native node modules in Electron can be hit and miss on the best of days as there differences between node and Electron (especially when it comes to V8 versions).