# Global

##

### Methods

#### cleanConfig(confirm)

Remove all the configuration files

Since:
  - 0.13.0
Source:
  - _utils.js, line 269

##### Parameters:

Name | Type | Description
--- | --- | ---
`confirm` | `Boolean` | Necessary to force the function.

#### clearTasks(gren)

Clears all the tasks that are still running

Since:
  - 0.6.0
Source:
  - _utils.js, line 77

##### Parameters:

Name | Type | Description
--- | --- | ---
`gren` | `GithubReleaseNotes` |

#### convertStringToArray(arrayLike) → {Array}

Converts an array like string to an actual Array, converting also underscores to spaces

Since:
  - 0.6.0
Source:
  - _utils.js, line 136

##### Parameters:

Name | Type | Description
--- | --- | ---
`arrayLike` | `string` | The string of items e.g. "wont_fix, duplicate, bug"

##### Returns:

Type:
  `Array`

The items with spaces instead of underscores.

#### dashToCamelCase(value) → {string}

Transforms a dasherize string into a camel case one.

Since:
  - 0.3.2
Source:
  - _utils.js, line 117

##### Parameters:

Name | Type | Description
--- | --- | ---
`value` | `string` | The dasherize string

##### Returns:

Type:
  `string`

The camel case string

#### formatDate(date) → {string}

Format a date into a string

Since:
  - 0.5.0
Source:
  - _utils.js, line 160

##### Parameters:

Name | Type | Description
--- | --- | ---
`date` | `Date` |

##### Returns:

Type:
  `string`

#### (private) generate(placeholders, string) → {string}

Generate the templated string based on a placeholders Object

Since:
  - 0.6.0
Source:
  - _template.js, line 13

##### Parameters:

Name | Type | Description
--- | --- | ---
`placeholders` | `Object` | All the keys/values to update
`string` | `string` | `function` | The string or the function that needs to be replaced

##### Returns:

Type:
  `string`

#### getConfigFromFile(path) → {Object}

Get configuration from the one of the config files

Since:
  - 0.6.0
Source:
  - _utils.js, line 194

##### Parameters:

Name | Type | Description
--- | --- | ---
`path` | `string` | Path where to look for config files

##### Returns:

Type:
  `Object`

The configuration from the first found file or empty object

#### getFileExtension(filename) → {string}

Return the extension of a filename

Source:
  - _utils.js, line 206

##### Parameters:

Name | Type | Description
--- | --- | ---
`filename` | `string` |

##### Returns:

Type:
  `string`

#### (private) getFileNameFromPath(path) → {string}

Get the filename from a path

Since:
  - 0.10.0
Source:
  - _utils.js, line 241

##### Parameters:

Name | Type | Description
--- | --- | ---
`path` | `string` |

##### Returns:

Type:
  `string`

#### getFileTypes() → {Array}

Get the file types for the configuration

Since:
  - 0.13.0
Source:
  - _utils.js, line 252

##### Returns:

Type:
  `Array`

#### isInRange(value, min, max) → {Boolean}

Check if e value is between a min and a max

Since:
  - 0.5.0
Source:
  - _utils.js, line 103

##### Parameters:

Name | Type | Description
--- | --- | ---
`value` | `number` |
`min` | `number` |
`max` | `number` |

##### Returns:

Type:
  `Boolean`

#### noop()

Just a noop function

Source:
  - _utils.js, line 289

#### printTask(name)

Print a task name in a custom format

Since:
  - 0.5.0
Source:
  - _utils.js, line 35

##### Parameters:

Name | Type | Description
--- | --- | ---
`name` | `string` | The name of the task

#### requireConfig(filepath) → {Object|boolean}

Gets the content from a filepath a returns an object

Since:
  - 0.6.0
Source:
  - _utils.js, line 173

##### Parameters:

Name | Type | Description
--- | --- | ---
`filepath` | `string` |

##### Returns:

Type:
  `Object` | `boolean`

#### sortObject(object) → {Object}

Sort an object by its keys

Since:
  - 0.8.0
Source:
  - _utils.js, line 17

##### Parameters:

Name | Type | Description
--- | --- | ---
`object` | `Object` |

##### Returns:

Type:
  `Object`

#### task(taskName) → {function}

Outputs the task status

Since:
  - 0.5.0
Source:
  - _utils.js, line 53

##### Parameters:

Name | Type | Description
--- | --- | ---
`taskName` | `string` | The task name

##### Returns:

Type:
  `function`

The function to be fired when is loaded

#### writeConfigToFile(path, data) → {string}

Create the content for a configuratio file, based on extension and data

Source:
  - _utils.js, line 218

##### Parameters:

Name | Type | Description
--- | --- | ---
`path` | `string` |
`data` | `Object` |

##### Returns:

Type:
  `string`

File content