Skip to content

Manage windows in Windows, macOS and Linux using Node.js

License

Notifications You must be signed in to change notification settings

p0pstas/node-window-manager

 
 

Repository files navigation

node-window-manager

Manage windows in Windows, macOS and Linux(WIP)

Install

To install this package, just run

$ npm install node-window-manager

Quick start

The following example shows how to get the currently focused window's title and hide it.

const { windowManager } = require("node-window-manager");

const window = windowManager.getActiveWindow();

// Prints the currently focused window bounds.
console.log(window.getBounds());

// This method has to be called on macOS before changing the window's bounds, otherwise it will throw an error.
// It will prompt an accessibility permission request dialog, if needed.
windowManager.requestAccessibility();

// Sets the active window's bounds.
window.setBounds({ x: 0, y: 0 });

Documentation

The documentation and API references are located in the docs directory.

About

Manage windows in Windows, macOS and Linux using Node.js

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 41.1%
  • Objective-C++ 30.1%
  • TypeScript 24.8%
  • JavaScript 2.2%
  • Python 1.8%