1.0.0 • Published 9 years ago

@wormss/batch-github v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
9 years ago

node-github

Batch Simple Github API

API:

Contructor Arguments
  • initData Object. Object with the following properties
    • github Object. @wormss/github like object.
get
  • arrPath [ArrayObject]. Array of Objects with the following properties
    • path String. String that confirms to the @wormss/github::get path argument.
    • data *|undefined. Some data that will be passed back out once call has finished. eg An identifier/object reference.
getAll
  • arrPath [ArrayObject]. Array of Objects with the following properties
    • path String. String that confirms to the @wormss/github::get path argument.
    • data *|undefined. Some data that will be passed back out once call has finished. eg An identifier/object reference.

Usage:

Constructing

// standard way
var github = ....
var BatchGitHubAPI = require('@wormss/batch-github');
var batch = new BatchGitHubAPI({ "github": github });
// quick instance with arguments
var github = ....
var batch = require('@wormss/batch-github').init({ "github": github });