node-window-manager
TypeScript icon, indicating that this package has built-in type declarations

2.2.4 • Public • Published

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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.2.4626latest

Version History

VersionDownloads (Last 7 Days)Published
2.2.4626
2.2.313
2.2.20
2.2.11
2.2.00
2.1.20
2.1.10
2.1.00
2.0.10
2.0.01
1.3.10
1.3.00
1.2.00
1.1.00
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00
0.9.50
0.9.40
0.9.30
0.9.20
0.9.10
0.9.00
0.8.50
0.8.48
0.8.30
0.8.20
0.8.10
0.8.00
0.7.10
0.7.00
0.6.10
0.6.00
0.5.00
0.4.00
0.3.10
0.3.00
0.2.20
0.2.10
0.2.00
0.1.30
0.1.20
0.1.10
0.1.00

Package Sidebar

Install

npm i node-window-manager

Weekly Downloads

649

Version

2.2.4

License

MIT

Unpacked Size

72.7 kB

Total Files

41

Last publish

Collaborators

  • sential