API Docs for: 0.10.0
Show:

utils Class

Defined in: lib/utils.js:6

Methods

combine

(
  • glue
  • str1
)
String

Defined in lib/utils.js:116

Combines multiple strings into one, making sure that the glue-string doesn't get applied when not required

Parameters:

Returns:

deepExtend

(
  • obj
  • objects
  • [options]
)
Object

Defined in lib/utils.js:35

Deep-extend of an object

Parameters:

Returns:

extendApply

(
  • obj
  • objects
  • [fn]
)
Object

Defined in lib/utils.js:10

An extend function that applies the result of a callback to each item

Parameters:

  • obj Object

    Destination object to merge into

  • objects Object[]

    Objects that should get merged into the destination object

  • [fn] Function optional

    Apply function for each item, returning the final result

Returns:

Object:

Destination object

fileNameSafe

(
  • str
)
String

Defined in lib/utils.js:140

Turns a string into a filesystem safe filename

Parameters:

Returns:

require

(
  • module
  • [defaultValue]
)

Defined in lib/utils.js:151

Safely requires a module

Parameters:

  • module String

    Module name or path

  • [defaultValue] optional

    Default value if the module cannot be found

Returns:

:

superWrapper

(
  • currentItem
  • previousItem
)

Defined in lib/utils.js:79

Wraps a function into another function that sets another function as the __super() function This is used to wrap every single function of an object so that one can call

this.__super();

to call its parent function that was overwritten.

Parameters:

  • currentItem
  • previousItem

Returns:

: