code: function copyPaths(view, fn) {
    var paths = {};
    paths.cwd = view.cwd;
    paths.base = view.base;
    paths.path = view.path;
    paths.absolute = path.resolve(view.path);
    paths.dirname = view.dirname;
    paths.relative = view.relative;
    paths.basename = view.basename;
    paths.extname = view.extname;
    paths.ext = view.extname;
  
    paths.filename = view.stem;
    paths.name = view.stem;
    paths.stem = view.stem;
    if (typeof fn === 'function') {
      fn(paths);
    }
    return paths;
  }
docs: Since views are vinyl files and paths are getters/setters,
  we need to copy paths from `view` onto a plain object