# active-app

> Detect the active window/application on Linux (X11) and hopefully more platforms in the future...

Latest version **1.0.0** (published 2016-04-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install active-app
pnpm add active-app
yarn add active-app
bun add active-app
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2016-04-09 |
| First published | 2016-04-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Ben Evans |
| Maintainers | bencevans |
| Keywords | x11, active, window, app, application |

## Links

- npm: https://www.npmjs.com/package/active-app
- Repository: https://github.com/bencevans/active-app
- Homepage: https://github.com/bencevans/active-app#readme
- Issues: https://github.com/bencevans/active-app/issues
- npm.io page: https://npm.io/package/active-app

## Recent versions

- 1.0.0 (latest) — 2016-04-09

## README

# active-app

> Detect the active window/application on Linux (X11) and hopefully more platforms in the future...

Anyone with experience in Windows/OSX development, I'd appreciate some help
adding support to this module

## Install

```
$ npm install active-app
```

## Usage

```js
const activeApp = require('active-app')

activeApp((err, app) => {
  if (err) {
    return console.error(err)
  }

  console.log(app)
})

// { desktopNumber: 0,
//   processId: 12685,
//   xOffset: 106,
//   yOffset: 85,
//   width: 1547,
//   height: 1715,
//   machineName: 'bxps',
//   psName: 'gnome-terminal-',
//   cmdline: '/usr/lib/gnome-terminal/gnome-terminal-server',
//   windowTitle: 'watch node index.js' }
```

## Licence

MIT © [Ben Evans](http://bensbit.co.uk)

---
_Source: https://npm.io/package/active-app · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
