init-git
v1.0.1
Published
Initialize git repository at given directory path
Downloads
8
Readme
init-git
Initialize git repository at given directory path
Highlights
- Written in Typescript
Usage
Initialize git repository at given directory path
const { initGit } = require('init-git');
initGit('./my-git-repo')
.then(result => console.log(result)) // true
initGit('bad-path')
.catch(error => console.log(error.message)) // Invalid path: bath-path
License
MIT © Nivrith