Skip to content

Soundofdarkness/window-pos

Repository files navigation

Window Position (window-pos)

GitHub GitHub package.json version

A small native library to get the size and position of a window on windows.

Installing

npm install git+https://github.com/Soundofdarkness/window-pos.git

Usage

const windowPos = require("window-pos");

// Rect: {top: 0, bottom: 0, left: 0, right: 0} or null if the window is not found.
const rect = windowPos.getWindowCoords("Window Title");

// Size: {width: 0, height: 0}
const size = windowPos.getWindowSize("Window Title")

Dependencies

Dev Dependencies:

License

This project is licensed under the terms of the MIT License. See License