0.0.1 • Published 8 years ago

mac-active-url v0.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
8 years ago

mac-active-url

Get the URL of the document represented in the focused window.

var getActiveUrl = require('mac-active-url').getActiveUrl
console.log('Active URL', getActiveUrl())

Test it out:

var getActiveUrl = require('mac-active-url').getActiveUrl
setInterval(function () {
  console.log('Active URL', getActiveUrl())
}, 1000)
// Set this running then focus some windows such as the Preview app