Module: Library/Utilities

Utilities library

All functions that are not related to a specific logic and that can be reused across modules

Source:

Members

(inner) logAndReject

Log an error and reject it again

Source:

(inner) sendBack

Mutate response

Source:

Methods

(static) getModulePath(relativePath) → {String}

Compute a module absolute path from its root based path

Parameters:
Name Type Description
relativePath String

Module relative path from project root

Source:
Returns:

Module absolute path

Type
String

(static) requireMiddleware(moduleName) → {Mixed}

Require a middleware, e.g. a module located in /lib/middlewares

Parameters:
Name Type Description
moduleName String

Module name

Source:
Returns:

Module exports

Type
Mixed