# cross-platform-active-window

> Get active window title, cross-platform

Latest version **1.0.0** (published 2019-02-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install cross-platform-active-window
pnpm add cross-platform-active-window
yarn add cross-platform-active-window
bun add cross-platform-active-window
```

## 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 | 2019-02-22 |
| First published | 2019-02-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | fluffynuts |

## Links

- npm: https://www.npmjs.com/package/cross-platform-active-window
- npm.io page: https://npm.io/package/cross-platform-active-window

## Recent versions

- 1.0.0 (latest) — 2019-02-22

## README

# cross-platform-active-window
> Get active window title in Node.js.
(fork of https://github.com/octalmage/active-window, which looks to be unmaintained)

Compatible with Linux, Windows 7+, and OSX;

## Usage

```javascript
var monitor = require('active-window');

callback = function(window){
  try {
    console.log("App: " + window.app);
    console.log("Title: " + window.title);
  }catch(err) {
      console.log(err);
  } 
}
/*Watch the active window 
  @callback
  @number of requests; infinity = -1 
  @interval between requests
*/
//monitor.getActiveWindow(callback,-1,1);

//Get the current active window
monitor.getActiveWindow(callback);


```
## Tested on
- Windows
 - Windows 10
 - Windows 7
- Linux 
  - Raspbian [lxdm]
  - Debian 8 [cinnamon]
- OSX
  - Yosemite 10.10.1

## TODO

- Test on more operating systems.
- Use native APIs. 

## License

MIT

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