'use strict';

var madge = require('madge');

function Dependo(targetPath, options) {

    this.config = options || {};
    this.config.format = String(options.format || 'amd').toLowerCase();
    this.config.exclude = options.exclude || null;

    this.dependencies = madge(targetPath, this.config).tree;

    if (this.config.transform || typeof (this.config.transform) == "function") {
        this.dependencies = this.config.transform(this.dependencies);
    }

}

Dependo.prototype.generateHtml = function (options) {
    return require('./html').output(this.dependencies, options);
};

module.exports = Dependo;
@@ -329,18 +329,18 @@
 ansform 
-%7C%7C
+&&
  typeof 

correct mistakes