lib/lmd_common.js
function getModuleFileByShortName(lmdDir, shortName) {
    var files;

    try {
        files = fs.readdirSync(lmdDir);
    } catch (e) {
        return void 0;
    }

    for (var i = 0, c = files.length, fileName; i < c; i++) {
        fileName = files[i];
        var fileExtension = (fileName.match(reLmdFile) || 0)[0];
        if (fileExtension && path.basename(fileName, fileExtension) === shortName) {
            return fileName;
        }
    }
}
function getModuleFileByShortName(lmdDir, shortName) {
    var files;

    try {
        files = fs.readdirSync(lmdDir);
    } catch (e) {
        return void 0;
    }

    for (var i = 0, c = files.length, fileName; i < c; i++) {
        fileName = files[i];
        var fileExtension = (fileName.match(reLmdFile) || 0)[0];
        if (fileExtension && path.basename(fileName, fileExtension) === shortName) {
            return fileName;
        }
    }
}
function getModuleFileByShortName ( lmdDir , shortName ) { var files ; try { files = fs . readdirSync ( lmdDir ) ; } catch ( e ) { return void 0 ; } for ( var i = 0 , c = files . length , fileName ; i < c ; i ++ ) { fileName = files [ i ] ; var fileExtension = ( fileName . match ( reLmdFile ) || 0 ) [ 0 ] ; if ( fileExtension && path . basename ( fileName , fileExtension ) === shortName ) { return fileName ; } } }
@param {String} lmdDir
@param {String} shortName

@returns {String|undefined}
@param { String } lmdDir @param { String } shortName