This module loads AWS credentials, and configuration for the server, or possibly a "local server".

Source:

Methods

(inner) getConfig() → {Object}

Synchronously gets a copy of the current configuration object

Source:
Returns:
Type
Object

(inner) getUserHome() → {string}

Source:
To Do:
  • replace this with `os.homedir()`? https://nodejs.org/api/os.html#os_os_homedir
Returns:
Type
string

(inner) interactiveUser() → {Promise.<Object>}

Interactively prompts the user for input needed to create a user config

Source:
Returns:
Type
Promise.<Object>

(inner) saveToken(token) → {Promise}

Promises to save the given token to the user's credentials

Parameters:
Name Type Description
token string
Source:
Returns:
Type
Promise

(inner) writeUserConfig(options) → {Promise.<{host: string, username: string, token: string, name: string=, email: string=, apiVersion: string=, tld: string=}>}

Parameters:
Name Type Description
options Object
Source:
Returns:
Type
Promise.<{host: string, username: string, token: string, name: string=, email: string=, apiVersion: string=, tld: string=}>