index.js
function pathParse(fullPath){

    var parsedPath = {
        ext: path.extname(fullPath),
        dir: path.dirname(fullPath),
        full: fullPath,
        base:  path.basename(fullPath),
    };

    parsedPath.name = path.basename(fullPath, parsedPath.ext);

    return parsedPath;
}
function pathParse(fullPath){

    var parsedPath = {
        ext: path.extname(fullPath),
        dir: path.dirname(fullPath),
        full: fullPath,
        base:  path.basename(fullPath),
    };

    parsedPath.name = path.basename(fullPath, parsedPath.ext);

    return parsedPath;
}
function pathParse ( fullPath ) { var parsedPath = { ext : path . extname ( fullPath ) , dir : path . dirname ( fullPath ) , full : fullPath , base : path . basename ( fullPath ) , } ; parsedPath . name = path . basename ( fullPath , parsedPath . ext ) ; return parsedPath ; }
mimics the path.parse function
mimics the path . parse function