https://github.com/cactoes/win-get-active-window
gets the title + exe name of focused (/active) window
https://github.com/cactoes/win-get-active-window
active-window javascript windows
Last synced: 2 months ago
JSON representation
gets the title + exe name of focused (/active) window
- Host: GitHub
- URL: https://github.com/cactoes/win-get-active-window
- Owner: cactoes
- License: mit
- Created: 2022-08-16T23:24:35.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-17T00:51:42.000Z (almost 4 years ago)
- Last Synced: 2025-08-09T19:15:31.777Z (11 months ago)
- Topics: active-window, javascript, windows
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# win-get-active-window
Is a windows rebuild of:
[https://github.com/octalmage/active-window](https://github.com/octalmage/active-window)
## Installing
```
$ npm install win-get-active-window
```
## Usage
```javascript
const getActiveWindow = require("win-get-active-window")
console.log(await getActiveWindow())
/* returns an object:
{
app: string
title: string
}
*/
```
## License
[MIT](LICENSE.md)