How to use the opn.opn function in opn

To help you get started, we’ve selected a few opn 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 microsoft / RTVS / src / VsCode / Extension / src / dependencies.ts View on Github external
function InstallDotNet() {
    opn("https://www.microsoft.com/net/download/core#/runtime");
}
github microsoft / RTVS / src / VsCode / Extension / src / dependencies.ts View on Github external
function InstallR() {
    let url: string;
    if (os.IsWindows()) {
        url = "https://cran.r-project.org/bin/windows/base/";
    } else if (os.IsMac()) {
        url = "https://cran.r-project.org/bin/macosx/";
    } else {
        url = "https://cran.r-project.org/bin/linux/";
    }
    opn(url);
}

opn

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

MIT
Latest version published 5 years ago

Package Health Score

66 / 100
Full package analysis

Popular opn functions