locate-safari
v0.2.1
Published
Find Safari on your system
Downloads
2
Maintainers
Readme
locate-safari
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.