1.0.1 • Published 5 years ago

init-git v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

init-git

CircleCI NPM Downloads node License MIT

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