How to use the open.apply function in open

To help you get started, we’ve selected a few open 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 Pana / nrm / cli.js View on Github external
function onHome (name, browser) {
    var allRegistries = getAllRegistry();
    var home = allRegistries[name] && allRegistries[name].home;
    if (home) {
        var args = [home];
        if (browser) args.push(browser);
        open.apply(null, args);
    }
}

open

Open stuff like URLs, files, executables. Cross-platform.

MIT
Latest version published 2 months ago

Package Health Score

91 / 100
Full package analysis