1.0.1 • Published 5 years ago
init-git v1.0.1
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