module-which
    Preparing search index...

    module-which

    Finds a module using path and node conventions.

    import which from 'module-which';

    which('biome', (err, biome) => {
    // biome = path to biome
    })
    import { whichAll } from 'module-which';

    whichAll(['biome', 'which'], (err, commands) => {
    // commands[0] = path to biome
    // commands[1] = path to which
    })

    API Docs