-express = require 'express'
-Promise = require 'bluebird'
+express      = require 'express'
+Promise      = require 'bluebird'
 prettyHrtime = require 'pretty-hrtime'
-_ = require 'lodash'
+_            = require 'lodash'
+os           = require 'os'
 
 module.exports = (params = {}) ->
   defaultParams =


  uptime = ->
    prettyHrtime process.hrtime start

  globalStatus = (statuses) ->
    for status in statuses

      if _.isArray custom
        for result in custom
          body[result.key] = result.result
      body.status       = globalStatus statuses
      body.processInfos = processInfos()
      body.osInfos      = osInfos()
      res.send body
  return app
