# electron-update-window-options

> Update an electron window after it's already been created using the constructor options schema

Latest version **1.1.1** (published 2017-12-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install electron-update-window-options
pnpm add electron-update-window-options
yarn add electron-update-window-options
bun add electron-update-window-options
```

## Health

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

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2017-12-25 |
| First published | 2017-12-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Eamon mikulec |
| Maintainers | ocboogie |
| Keywords | electron, browser window, window, settings, options, update |

## Links

- npm: https://www.npmjs.com/package/electron-update-window-options
- Repository: https://github.com/ocboogie/electron-update-window-options
- Homepage: https://github.com/ocboogie/electron-update-window-options#readme
- Issues: https://github.com/ocboogie/electron-update-window-options/issues
- npm.io page: https://npm.io/package/electron-update-window-options

## 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

- 1.1.1 (latest) — 2017-12-25
- 1.1.0 — 2017-12-25
- 1.0.3 — 2017-12-25
- 1.0.2 — 2017-12-25
- 1.0.1 — 2017-12-25
- 1.0.0 — 2017-12-25

## README

# electron-update-window-options

This library allows you to update an electron window after it's already been created using the constructor options schema.

```js
updateWindowOptions(browserWindow, { movable: false });
```

is the same as

```js
new BrowserWindow({ movable: false });
```

But you can use this function after it's created

# Examples/Usage

```js
const { BrowserWindow, app } = require("electron");
const updateWindowOptions = require("electron-update-window-options");

app.on("ready", () => {
  const browserWindow = new BrowserWindow({ movable: true });

  browserWindow.setMovable(false);
  // Is the same as
  updateWindowOptions(browserWindow, { movable: false });
  // But this is the same format as
  // new BrowserWindow(/* this */);
});
```

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