Requires

  • module:ofetch
  • module:dotenv

Methods

(async, static) getGists(user) → {Promise.<{data: Array.<any>}>}

This function returns the gists object from the GitHub API for a given user

Parameters:
NameTypeDescription
userstring

Github username

Returns:

Gists object

Type: 
Promise.<{data: Array.<any>}>