index.js
function getComponents(file) {
    var relativePath = file.relative;
    var pathParts = Path.dirname(relativePath).split(Path.sep);
    return {
        ext: Path.extname(relativePath).substr(1), // strip dot
        filename: Path.basename(relativePath),
        packageName: pathParts[0]
    };
}
function getComponents(file) {
    var relativePath = file.relative;
    var pathParts = Path.dirname(relativePath).split(Path.sep);
    return {
        ext: Path.extname(relativePath).substr(1), // strip dot
        filename: Path.basename(relativePath),
        packageName: pathParts[0]
    };
}
function getComponents ( file ) { var relativePath = file . relative ; var pathParts = Path . dirname ( relativePath ) . split ( Path . sep ) ; return { ext : Path . extname ( relativePath ) . substr ( 1 ) , // strip dot filename : Path . basename ( relativePath ) , packageName : pathParts [ 0 ] } ; }
Gets the component parts, package name, filename, ext
Gets the component parts package name filename ext