How to use the resolve-cwd function in resolve-cwd

To help you get started, we’ve selected a few resolve-cwd examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DevExpress / testcafe / src / cli / index.js View on Github external
function getLocalInstallation () {
    const local = resolveCwd('testcafe/lib/cli');

    if (local && local !== __filename) {
        log.write('Using locally installed version of TestCafe.');
        return local;
    }

    return '';
}
github DevExpress / testcafe / src / utils / detect-ffmpeg.js View on Github external
async function requireFFMPEGModuleFromCwd () {
    try {
        const ffmpegModulePath = resolveCwd(FFMPEG_MODULE_NAME);

        return require(ffmpegModulePath).path;
    }
    catch (e) {
        return '';
    }
}

resolve-cwd

Resolve the path of a module like `require.resolve()` but from the current working directory

MIT
Latest version published 5 years ago

Package Health Score

70 / 100
Full package analysis

Popular resolve-cwd functions