
Security News
OWASP 2025 Top 10 Adds Software Supply Chain Failures, Ranked Top Community Concern
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.
win-geometry
Advanced tools
WinGeometry is a lightweight Node.js module that retrieves the screen position and size of a window based on its title (INI path or window name), using a native Windows executable.
⚠️ Works only on Windows systems.
npm install win-geometry
const { getWindowGeometry } = require('win-geometry');
getWindowGeometry('window-title')
.then(({ x, y, width, height }) => {
console.log('Window Geometry:', { x, y, width, height });
})
.catch(err => {
console.error('Error:', err.message);
});
If the window is found, the function returns a Promise that resolves to an object:
{
x: Number,
y: Number,
width: Number,
height: Number
}
If the window is not found or an error occurs, the Promise is rejected with an appropriate error message.
This module depends on a native executable called WinGeometry.exe, located in the bin/ folder. This executable performs the actual window geometry retrieval using Windows API calls.
Make sure WinGeometry.exe is included when packaging or publishing.
Geometry: { x: 123, y: 456, width: 800, height: 600 }
.exe dependency)MIT © nstechbytes
FAQs
Get window geometry for a window title
The npm package win-geometry receives a total of 0 weekly downloads. As such, win-geometry popularity was classified as not popular.
We found that win-geometry demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.

Security News
Socket CTO Ahmad Nassri discusses why supply chain attacks now target developer machines and what AI means for the future of enterprise security.