@wormss/batch-github

1.0.0 • Public • Published

node-github

Batch Simple Github API

API:

Contructor Arguments
  • initData [Object]. Object with the following properties
    • github [Object]. @wormss/github like object.
get
  • arrPath [Array[Object]]. 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 [Array[Object]]. 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 });

/@wormss/batch-github/

    Package Sidebar

    Install

    npm i @wormss/batch-github

    Weekly Downloads

    1

    Version

    1.0.0

    License

    ISC

    Last publish

    Collaborators

    • wormss