0.2.0 • Published 9 years ago

safari-location v0.2.0

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

safari-location experimental

Approximates the current location of Safari on your system.

Based on chrome-location.

Usage

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

CLI Usage

stdout path to Safari (or null):

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

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

> "`safari-location`"

License

MIT. See LICENSE.md for details.