index.js
function shouldRun(verb) {
    // Add extra middleware to check if this method matches the requested HTTP verb
    return function wareShouldRun(req, res, next) {
        var shouldRun = (this.running && (req.method === verb || verb.toLowerCase() === 'all'));
        // Call next in stack if it matches
        if (shouldRun) next();
    }
}
function shouldRun(verb) {
    // Add extra middleware to check if this method matches the requested HTTP verb
    return function wareShouldRun(req, res, next) {
        var shouldRun = (this.running && (req.method === verb || verb.toLowerCase() === 'all'));
        // Call next in stack if it matches
        if (shouldRun) next();
    }
}
function shouldRun ( verb ) { // Add extra middleware to check if this method matches the requested HTTP verb return function wareShouldRun ( req , res , next ) { var shouldRun = ( this . running && ( req . method === verb || verb . toLowerCase ( ) === 'all' ) ) ; // Call next in stack if it matches if ( shouldRun ) next ( ) ; } }
Middleware to check whether or not handler should continue running

@param {String} HTTP Method
@return {Function} Middleware
Middleware to check whether or not handler should continue running