gistify

0.3.0 • Public • Published

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>

Readme

Keywords

Package Sidebar

Install

npm i gistify

Weekly Downloads

3

Version

0.3.0

License

MIT

Last publish

Collaborators

  • mdobs