active-app-watcher

1.1.1 • Public • Published

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

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i active-app-watcher

    Weekly Downloads

    1

    Version

    1.1.1

    License

    MIT

    Last publish

    Collaborators

    • bencevans