New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

get-window-position

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-window-position

**get-window-position** is a Node.js addon that lets you get the position of a window by its name. It works by hooking into the native Windows API.

latest
npmnpm
Version
1.4.0
Version published
Maintainers
1
Created
Source

get-window-position

get-window-position is a Node.js addon that lets you get the position of a window by its name. It works by hooking into the native Windows API.

🚀 Installation

To rebuild the addon, make sure you have Python, node-gyp, and windows-build-tools installed. You can then install this addon using one of the following methods:

Install from a local directory: npm install /path/to/this/directory

Install from npm:

npm install get-window-position

📖 Usage

You can use get-window-position in your code like this:

import { getWindowPositionByName } from 'get-window-position'
const position = getWindowPositionByName('Spotify Premium')
console.log(position)

💡Some use cases

This can be useful, for example, if you want to:

Move a window to a specific position on the screen Overlay a window on top of another window

Hope this helps someone!

FAQs

Package last updated on 25 Jul 2023

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