Stats

 Latest version : 1.1.1

 Last updated on 2016-08-03T17:24:19.547Z

 Keywords : active, app, application, window, watch, monitor, event, eventemitter, x11

 Downloads :

  • 20 in Last Month

 Links :

 Examples

¯\_(ツ)_/¯
No examples found for this package

 Readme

active-app-watcher

Event emitting active window/app watcher

Install

$ npm install active-app-watcher --save

Usage

import ActiveAppWatcher from 'active-app-watcher'

const appWatch = new ActiveAppWatcher()

appWatch.on('error', (err) => {
  console.error(err)
})

appWatch.on('change', (app) => {
  console.log('change', app)
})

appWatch.on('check', (app) => {
  console.log('check', app)
})

appWatch.start()

Related

  • active-app - Detect the active window/application

Licence

MIT © Ben Evans

 Comments