mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
10 lines
209 B
TypeScript
10 lines
209 B
TypeScript
import * as Git from 'nodegit';
|
|
|
|
Git.Repository.discover("startPath", 1, "ceilingDirs").then((string) => {
|
|
// Use string
|
|
});
|
|
|
|
Git.Repository.init("path", true).then((repository) => {
|
|
// Use repository
|
|
});
|