npm.io
0.3.0 • Published 11 years agoCLI

gistify

Licence
MIT
Version
0.3.0
Deps
3
Vulns
0
Weekly
0

Gistify

Create gists easily.

Usage

JavaScript

var Gistify = require('gistify');

Gistify.authenticate(username, password, function(err) {
  if(err) {
    console.log('Error authenticating');
    console.log(err);
  } else {
    //authenticated successfully

    Gistify.create('Test Gist', true, {'test.js': { 'content': 'console.log("hello");'}}, function(err) {
      if(err) {
        console.log('Error creating gist');
      } else {
        console.log('Gist created successfully');
      }
    });
  }
});
Shell
$ gistify <dir|file>

Keywords