Nocturnal Programmer's Machine
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

app-path

2.2.0 • Public • Published

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

Downloadsweekly downloads

3,977

version

2.2.0

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar