code: function dumpToFile(extension, regex) {
    return inspect(onComplete);
  
    function onComplete(filename, contents, done) {
      if (!regex || regex.test(filename)) {
        var newName = [filename, extension || 'gen'].join('.');
        fs.writeFile(newName, contents, done);
      } else {
        done();
      }
    }
  }
docs: Transform that writes out the current state of the transformed file next to the original source file.
  Particularly helpful for source map visualisation.
  @see http://sokra.github.io/source-map-visualization
  @param {string} [extension] An optionalextention to append to the file (defaults to 'gen' meaning generated)
  @param {RegExp} [regex] An optional filename filter
  @returns {function} Browserify transform