Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    app-pathpublic

    app-path Build Status

    Get the path to an app (macOS)

    Install

    $ npm install --save app-path

    Usage

    const appPath = require('app-path');
     
    appPath('Safari').then(path => {
        console.log(path);
        //=> '/Applications/Safari.app' 
    });
     
    appPath('com.apple.Safari').then(path => {
        console.log(path);
        //=> '/Applications/Safari.app' 
    });
     
    console.log(appPath('Safari'));
    //=> '/Applications/Safari.app' 

    Related

    License

    MIT © Sindre Sorhus

    install

    npm i app-path

    Downloadslast 7 days

    3,625

    version

    2.2.0

    license

    MIT

    repository

    github.com

    last publish

    collaborators

    • avatar