This package has been deprecated

Author message:

Use locate-safari, instead.

safari-location

0.2.0 • Public • Published

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.

Package Sidebar

Install

npm i safari-location

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • davidtheclark