node package manager

app-path

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