# win-setwindowpos

> JaroslawPokropinski

Latest version **2.1.0** (published 2019-10-31) · ISC license · 0 weekly downloads

## Install

```sh
npm install win-setwindowpos
pnpm add win-setwindowpos
yarn add win-setwindowpos
bun add win-setwindowpos
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2019-10-31 |
| First published | 2019-08-13 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 360.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | yes |
| GitHub stars | 3 |
| Maintainers | jaroslawpokropinski |
| Keywords | windows, winapi, SetWindowPos |

## Links

- npm: https://www.npmjs.com/package/win-setwindowpos
- Repository: https://github.com/JaroslawPokropinski/SetWindowPos
- Homepage: https://github.com/JaroslawPokropinski/SetWindowPos#readme
- Issues: https://github.com/JaroslawPokropinski/SetWindowPos/issues
- npm.io page: https://npm.io/package/win-setwindowpos

## 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.1.0 (latest) — 2019-10-31
- 2.0.0 — 2019-09-04
- 1.3.0 — 2019-08-20
- 1.2.0 — 2019-08-17
- 1.1.0 — 2019-08-14
- 1.0.3 — 2019-08-13
- 1.0.2 — 2019-08-13
- 1.0.1 — 2019-08-13
- 1.0.0 — 2019-08-13

## README

# SetWindowPos
[![Build Status](https://travis-ci.org/JaroslawPokropinski/SetWindowPos.svg?branch=master)](https://travis-ci.org/JaroslawPokropinski/SetWindowPos)

Node package wrapping SetWindowPos from winapi User32.dll
## Requirements
+ Windows
+ Node 10.x or newer
## Installation
```
npm i win-setwindowpos
```
## Usage
SetWindowPos is designed to be used with electron (altough it can be used without it).
```
const { 
  SetWindowPos,
  HWND_BOTTOM,
  SWP_NOACTIVATE,
  SWP_NOSIZE,
  SWP_NOMOVE
} = require('win-setwindowpos');
let window;

function createConfigWindow() {
  window = new BrowserWindow({
    // BrowserWindow parameters
  });
  // window setup
  const hwnd = window.getNativeWindowHandle();
  SetWindowPos(
    hwnd,
    HWND_BOTTOM,
    0,
    0,
    0,
    0,
    SWP_NOACTIVATE | SWP_NOSIZE | SWP_NOMOVE
  );
}

```

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