inverter.js
function invert(str, options){

  if(!options) options = {};
  if(!options.exclude) options.exclude = [];
  
  for(var rule in rules) {
  
    // Pass excluded rules
    if(options.exclude.indexOf(rule) != -1) continue;
    
    // Run rule
    str = rules[rule](str, options);
    
  }
  
  return str;

}
function invert(str, options){

  if(!options) options = {};
  if(!options.exclude) options.exclude = [];
  
  for(var rule in rules) {
  
    // Pass excluded rules
    if(options.exclude.indexOf(rule) != -1) continue;
    
    // Run rule
    str = rules[rule](str, options);
    
  }
  
  return str;

}
function invert ( str , options ) { if ( ! options ) options = { } ; if ( ! options . exclude ) options . exclude = [ ] ; for ( var rule in rules ) { // Pass excluded rules if ( options . exclude . indexOf ( rule ) != - 1 ) continue ; // Run rule str = rules [ rule ] ( str , options ) ; } return str ; }
Inverts a CSS string

@param {String} str CSS string
@param {Object} options (Optional)
@return {String} Inverted CSS
@api public
Inverts a CSS string