🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

zpos-adjuster

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zpos-adjuster

A Node.js wrapper for ZPos Adjuster to control window Z-order (Windows only)

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Zpos-Adjuster

đź”§ A Node.js wrapper around the native Windows binary ZPosAdjuster.exe for adjusting a window's Z-order (Topmost, Bottom, Desktop-widget, etc.).

npm version Platform

Features

  • Set any window to:
    • Topmost
    • Normal
    • Bottom
    • Desktop-widget mode (safe from Win+D)
  • Restore original state
  • CLI and API usage
  • Works on Windows only

Installation

npm install zpos-adjuster

⚠️ Windows only — this module uses a native .exe under the hood.

Usage

1. Programmatic (Node.js)

const adjustZPos = require('zpos-adjuster');

adjustZPos({ zpos: -2, title: 'Untitled - Notepad' })
  .then(console.log)
  .catch(console.error);

Parameters

ParameterTypeRequiredDescription
zposNumber or 'r'âś…Z-position value or 'r' to reset
titleStringâś…Exact window title (e.g. from taskbar)

Z-Position Values

ValueDescription
'r'Reset to original window style/position
1Topmost
0Normal
-1Bottom
-2Desktop-widget mode (Win+D safe)

2. CLI Usage

node node_modules/zpos-adjuster/index.js --zpos -1 --t "Untitled - Notepad"

Example

// Set a window to desktop widget mode
adjustZPos({ zpos: -2, title: 'My Widget' })
  .then(msg => console.log('âś…', msg))
  .catch(err => console.error('❌', err.message));

License

MIT © nstechbytes

Author

nstechbytes GitHub: @nstechbytes Website: nstechbytes.pages.dev

Keywords

zpos

FAQs

Package last updated on 22 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts