gitify

0.1.1 • Public • Published

gitify

Tool to create a remote github repository and add and push content to it.

var gitify = require('gitify');
 
// change user and password to match your github account to see it in action
gitify(
  { user     :  'joe'
  , password :  'secret'
  , repo     :  'foo'   // if no repo is given, the current folder name is used
  }
  , function (err) {
    if (err) return console.error('err: ', err);
    console.log('Success');
  }
);

Installation

npm install gitify

API

gitify(opts : Object, cb : Function)

  • opts are optional and specify
    • user* : github user
    • password* : github password
    • repo : name under which the repo should be published on github (defaults to current dir name)
    • description : description of the repository (default empty)

* if user and/or password are not supplied, they will be obtained by prompting the user on the first gitify run and saved into a config at: ~/.config/gitify.js for future runs

Commandline

gitify [<repo> <description> <user> <password>]

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i gitify

Weekly Downloads

1

Version

0.1.1

License

MIT

Last publish

Collaborators

  • thlorenz