0.2.1 • Published 9 years ago

locate-safari v0.2.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

locate-safari experimental

Finds Safari on your system.

Based on chrome-location.

Usage

var locateSafari = require('locate-safari');
// Use a callback
locateSafari(function(l) {
  console.log(l);
});
// Use the returned Promise
locateSafari.then(function(l) {
  console.log(l);
});

CLI Usage

stdout path to Safari (or null):

> locate-safari
# /Applications/Safari.app/Contents/MacOS/Safari

Open Safari (you'll need to use quotes if Safari's path has spaces in it):

> "`locate-safari`"

License

MIT. See LICENSE.md for details.