# node-window-manager

> Manage windows in macOS, Windows and Linux

Latest version **2.2.4** (published 2020-09-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install node-window-manager
pnpm add node-window-manager
yarn add node-window-manager
bun add node-window-manager
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.4 |
| Published | 2020-09-27 |
| First published | 2019-02-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 71 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 438 |
| Author | sentialx |
| Maintainers | sential |
| Keywords | window-manager, native, macos, linux, windows |

## Links

- npm: https://www.npmjs.com/package/node-window-manager
- Repository: https://github.com/sentialx/node-window-manager
- Homepage: https://github.com/sentialx/node-window-manager#readme
- Issues: https://github.com/sentialx/node-window-manager/issues
- npm.io page: https://npm.io/package/node-window-manager

## Dependencies (3)

- [node-addon-api](https://npm.io/package/node-addon-api.md) 2.0.0
- [node-gyp-build](https://npm.io/package/node-gyp-build.md) ^4.2.1
- [extract-file-icon](https://npm.io/package/extract-file-icon.md) ^0.3.2

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 2.2.4 (latest) — 2020-09-27
- 2.2.3 — 2020-04-28
- 2.2.2 — 2020-04-26
- 2.2.1 — 2020-04-16
- 2.2.0 — 2020-04-16
- 2.1.2 — 2020-04-15
- 2.1.1 — 2020-04-14
- 2.1.0 — 2020-04-14
- 2.0.1 — 2019-12-16
- 2.0.0 — 2019-12-14
- 1.3.1 — 2019-12-12
- 1.3.0 — 2019-12-11
- 1.2.0 — 2019-11-15
- 1.1.0 — 2019-08-20
- 1.0.4 — 2019-07-28
- … 31 more at https://npm.io/package/node-window-manager/versions

## README

# node-window-manager

Manage windows in Windows, macOS and ~~Linux~~(WIP)

# Install

To install this package, just run

```bash
$ npm install node-window-manager
```

# Quick start

The following example shows how to get the currently focused window's title and hide it.

```javascript
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`](docs) directory.

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