init-git
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i init-git

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

165 kB

Total Files

10

Last publish

Collaborators

  • nivrith