 
 # # Middleware
 
-i8n = require 'inflection'
-
-config = require 'config'
-pkgman = require 'pkgman'
-
-debug = require('debug') 'shrub:middleware'
+{EventEmitter} = require 'events'
 
 # ## Middleware
 #

# Error-handling middleware are only called if a previous middleware threw or
# passed an error. Conversely, non-error-handling middleware are skipped if a
# previous error occurred.
exports.Middleware = class Middleware

	# ## *constructor*
	#

					# the error and pass it along.
					try
						localArgs = args.concat()
						localArgs.push invoke
						self.emit 'invoking', current
						current localArgs...
					catch error
						invoke error
