
Research
/Security News
DuckDB npm Account Compromised in Continuing Supply Chain Attack
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
all-windows
Advanced tools
Get metadata about all windows (title, id, bounds, owner, URL, etc). Works on macOS.
Get metadata about all windows (title, id, bounds, owner, URL, etc)
Works on macOS.
Users on macOS 10.13 or earlier needs to download the Swift runtime support libraries.
$ npm install all-windows
const allWindows = require('all-windows');
(async () => {
console.log(await allWindows());
/*
[
{
title: 'Unicorns - Google Search',
id: 5762,
bounds: {
x: 0,
y: 0,
height: 900,
width: 1440
},
owner: {
name: 'Google Chrome',
processId: 310,
bundleId: 'com.google.Chrome',
path: '/Applications/Google Chrome.app'
},
url: 'https://www.google.com/search?q=unicorn',
memoryUsage: 11015432
}
]
*/
})();
Returns a Promise<Object>
with the result, or Promise<undefined>
if there are no windows or if the information is not available.
Returns an Object
with the result, or undefined
if there are no windows.
An array of the following object structure:
platform
(string) - 'macos'
title
(string) - Window titleid
(number) - Window identifierbounds
(Object) - Window position and size
x
(number)y
(number)width
(number)height
(number)owner
(Object) - App that owns the window
name
(string) - Name of the appprocessId
(number) - Process identifierbundleId
(string) - Bundle identifier (macOS only)path
(string) - Path to the appurl
(string?) - URL of the active browser tab if the window is Safari, Chrome, Edge, or Brave (macOS only)memoryUsage
(number) - Memory usage by the window owner processIt works on macOS.
FAQs
Get metadata about all windows (title, id, bounds, owner, URL, etc). Works on macOS.
We found that all-windows demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.