lib/module.js
function getCandidates(moduleName, srcPath) {
    const
    candidates = [],
    moduleNames = getSynonyms(moduleName);

    for( const path of srcPath) {
        for( const name of moduleNames) {
            candidates.push( Path.resolve( path, "mod", name) );
        }
    }
    return candidates;
}
function getCandidates(moduleName, srcPath) {
    const
    candidates = [],
    moduleNames = getSynonyms(moduleName);

    for( const path of srcPath) {
        for( const name of moduleNames) {
            candidates.push( Path.resolve( path, "mod", name) );
        }
    }
    return candidates;
}
function getCandidates ( moduleName , srcPath ) { const candidates = [ ] , moduleNames = getSynonyms ( moduleName ) ; for ( const path of srcPath ) { for ( const name of moduleNames ) { candidates . push ( Path . resolve ( path , "mod" , name ) ) ; } } return candidates ; }
List all possible absolute pathes for the given module.

@param {string} moduleName - Name of the module (with dots).
@param {array} srcPath - Array of absolute pathes where to look for sources.
Module's files lie in the subdirectory `mod/` of a source directory.
@returns {array} Array of absolute module pathes in order of preferrence.
Because a module can be made of several different files with the same basename,
These pathes have no file extension.
List all possible absolute pathes for the given module .