{"_id":"@arcsine/active-win","_rev":"5-954cc21891a6b716f3526b4baf6a8f92","name":"@arcsine/active-win","dist-tags":{"latest":"5.0.3"},"versions":{"5.0.0":{"name":"@arcsine/active-win","version":"5.0.0","description":"Get metadata about the active window (title, id, bounds, screens, owner, etc). Works on macOS, X11-based Desktops (Linux, BSD), Windows.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/arciisine/active-win.git"},"author":{"name":"Timothy Soehnlin","email":"timothy.soehnlin@gmail.com","url":"github.com/arciisine"},"engines":{"node":">=8"},"scripts":{"test":"ava","build-win32":"csc native/win32/*.cs -Out:bin/active-win-win32.exe","build-x11":"cp native/x11/main.js bin/active-win-x11.js","compile-darwin":"swift build --package-path=native/darwin --configuration=release --static-swift-stdlib","move-darwin":"mv native/darwin/.build/release/active-win bin/active-win-darwin","build-darwin":"npm run compile-darwin && npm run move-darwin","compile":"mkdir bin; npm run build-x11 && npm run build-darwin && npm run build-win32"},"maintainers":[{"name":"arcsine","email":"timothy.soehnlin@gmail.com"}],"keywords":["macos","linux","x11","windows","app","application","window","win","active","focused","current","title","name","id","pid","screenshot","capture","metadata","bounds","memory","usage","bundleid"],"devDependencies":{"ava":"^0.25.0"},"gitHead":"b922d2b1a5c4789490bfde16a8bd03dcef7326c1","bugs":{"url":"https://github.com/arciisine/active-win/issues"},"homepage":"https://github.com/arciisine/active-win#readme","_id":"@arcsine/active-win@5.0.0","_npmVersion":"6.5.0","_nodeVersion":"11.6.0","_npmUser":{"name":"arcsine","email":"timothy.soehnlin@gmail.com"},"dist":{"integrity":"sha512-Q8kZMeYoGUZY7tcXrN022VmTALq6bcYhLEKHb8UklFM5YD+7Dir81GNzhSwrxEpMP6YTV1vqVHcr81ABD7yPoA==","shasum":"318f723ade879a627efbbd02162209184b847bed","tarball":"https://registry.npmjs.org/@arcsine/active-win/-/active-win-5.0.0.tgz","fileCount":8,"unpackedSize":10085290,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcRnQOCRA9TVsSAnZWagAAQ1cQAI/t6VHtiO4L/ujKZQKk\nyJlhEt78ythWUzDVJMZHrrvJmr6/A1mw+ENUbQLYy7wKgXQqMc0Y6RXb+gHW\nlLcx5DgfKabUO8+HrEX0C+aiN0Sz9vUelDgLOT+AECFr86LQXGGrVad/dHMp\n6NeiY1thwk0g6z0pvCFNOZ9r1JsYz0wr2Hnz2oDPQxhCydPWt1xa4SFSTRmc\nI4ICtG6paYSOWbuSN2mN15Dcg8nr9+1NlJmQ9u/28tCoAQoDpdh1Xxl0vV4R\nwOvR1VCLMSI2S1j3teEO22sPqNYt8oiKRFKqrf0tZ/RRB4Yg/ZJCubVzSD5O\nCWhCwCOma73zqgkSOSAdXah6DVKXz+oGZ5gBHhYKzqQsakvnxgF5VN8YVPbD\nb3d6wUe4t2nAG31laAK7teYctl9PzJ0dhiSPjaZzmoPfCmx3Uk9JVgbunXAd\nhRXY64Ry+kuLh0+H8BkJIiEAur4X4HyMMY0s/T9M6G/jIAndHr+v4XcFxF2k\n4ODUqQmrHzuWaJt4XLOdo1ibEljvfsdaq/6xu9IxNZyVVYvDu8R6DL5W/qMz\nPG+HeyK/KBleabXajQ1AomJZTpXOcRz/NXmBO4XE+J5x5U2firXSmRtDCVn0\nFhTbG2WsMQo1lBBacU5L/NgYnMwsWY0o9te/T53xFUyQk/KhQRQ/ACwjWaZ2\nLTKP\r\n=+20y\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEIfhnIN12FnMDzaZY94gmfbjvwHJ5OQXqowzejG22rXAiBQV6ox0feW6yf37etpAoCh8Tpyh1OfQhX0/RX/xQk8hw=="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/active-win_5.0.0_1548121101866_0.8583274183071556"},"_hasShrinkwrap":false,"deprecated":"This package has now been renamed to @arcsine/win-info"},"5.0.1":{"name":"@arcsine/active-win","version":"5.0.1","description":"Get metadata about the active window (title, id, bounds, screens, owner, etc). Works on macOS, X11-based Desktops (Linux, BSD), Windows.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/arciisine/active-win.git"},"author":{"name":"Timothy Soehnlin","email":"timothy.soehnlin@gmail.com","url":"github.com/arciisine"},"engines":{"node":">=8"},"scripts":{"test":"ava","build-win32":"csc native/win32/*.cs -Out:bin/active-win-win32.exe","build-x11":"cp native/x11/main.js bin/active-win-x11.js","compile-darwin":"swift build --package-path=native/darwin --configuration=release --static-swift-stdlib","move-darwin":"mv native/darwin/.build/release/active-win bin/active-win-darwin","build-darwin":"npm run compile-darwin && npm run move-darwin","compile":"mkdir bin; npm run build-x11 && npm run build-darwin && npm run build-win32"},"maintainers":[{"name":"arcsine","email":"timothy.soehnlin@gmail.com"}],"keywords":["macos","linux","x11","windows","app","application","window","win","active","focused","current","title","name","id","pid","screenshot","capture","metadata","bounds","memory","usage","bundleid"],"devDependencies":{"ava":"^0.25.0"},"gitHead":"1bb765dec3c84aef2cc76ef53cab26fedac3c02e","bugs":{"url":"https://github.com/arciisine/active-win/issues"},"homepage":"https://github.com/arciisine/active-win#readme","_id":"@arcsine/active-win@5.0.1","_npmVersion":"6.5.0","_nodeVersion":"11.8.0","_npmUser":{"name":"arcsine","email":"timothy.soehnlin@gmail.com"},"dist":{"integrity":"sha512-fZxYOhsuJEut+YNu5W/UkxWDgRdUhKbnxEuKe4jtlHpQuP9z8NPgPyfUkSxY4CRJ1DRU6emMRyFr573mlbHkZQ==","shasum":"1559b4313b475358d4f2610c595060d120f5d864","tarball":"https://registry.npmjs.org/@arcsine/active-win/-/active-win-5.0.1.tgz","fileCount":8,"unpackedSize":10079602,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcTlpfCRA9TVsSAnZWagAAPGoP/075NLaRp+D+04u6DWg6\nStSDZawNiwOY5rRIfGsyxkG9dTXvrApsLk22sHCakczUkOu5qu52VsYBHp5b\nl4FhWO+l/JJb3Al7ymsNQUY3OC40Wko5K0/ZkGkRhGZXJNFRmCDrvpLtZTbt\n5+w52QGeRYMz4wAbBnqg33O2nDsZ+vdhyO834YGWO//OYMkhK5fdz6cmQtkM\nDienrkzXndWWsG2WhfMTIYbJ6VVRbrwAqq8mKHIBmzsaWCJV4VgXAvUROh1g\n7xjbmWk7JuWJlPZoUeTn0vmQRL1oihz4ogrpMYxuOxb9iXEuSUl6MqsFm7y2\n4+t9FuENVkA842VxFeMOFWC8gK7EAMd478eYgkgCns7D+L4r7WhRk9Z3iD2Y\nX/iLAGTveBtMOWfN0PWOPKnQiIg9+QpOvUduiDpsxymMmyikMqLPHsL8xJjs\nVOUS/vK8y5K4E99XK63FDu8aCX07LZ7+yRsBR9CFj0kWsTSdd85FU497pDeR\nG0DO3La+5H9NUBxcrsGHVmmvgjs8TsCm6XoUX+HegLcGbC2MP2blsk2MflNV\nn+9g15c/K64egO4qmpxz11PSjmg05cXk9Rq2rd/z8vHOtUFZq6Icoi5BdBdO\n/ogGW/+5RF2bUMwO8ll+FP58kGjC3sAtiykAqJb+ckWZ2qZ3ebIujhu1ITmF\nVY0A\r\n=mXfr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAtVPadKoOYi+x4i6v7rZydsHeEG2LeR6PTxyn90j0HVAiEAsMhb2RnnrAsWzr3wzjeEZFEuPUwxpob2FGQctC8oGGM="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/active-win_5.0.1_1548638815158_0.9018427761657073"},"_hasShrinkwrap":false,"deprecated":"This package has now been renamed to @arcsine/win-info"},"5.0.2":{"name":"@arcsine/active-win","version":"5.0.2","description":"Get metadata about the active window (title, id, bounds, screens, owner, etc). Works on macOS, X11-based Desktops (Linux, BSD), Windows.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/arciisine/active-win.git"},"author":{"name":"Timothy Soehnlin","email":"timothy.soehnlin@gmail.com","url":"github.com/arciisine"},"engines":{"node":">=8"},"scripts":{"test":"ava","build-win32":"csc native/win32/*.cs -Out:bin/active-win-win32.exe","build-x11":"cp native/x11/main.js bin/active-win-x11.js","compile-darwin":"swift build --package-path=native/darwin --configuration=release --static-swift-stdlib","move-darwin":"mv native/darwin/.build/release/active-win bin/active-win-darwin","build-darwin":"npm run compile-darwin && npm run move-darwin","compile":"mkdir bin; npm run build-x11 && npm run build-darwin && npm run build-win32","prepublish":"npm run compile"},"maintainers":[{"name":"arcsine","email":"timothy.soehnlin@gmail.com"}],"keywords":["macos","linux","x11","windows","app","application","window","win","active","focused","current","title","name","id","pid","screenshot","capture","metadata","bounds","memory","usage","bundleid"],"devDependencies":{"ava":"^0.25.0"},"gitHead":"ccb8ea3be8984ebfe13721c8f1b8133cd0884a61","bugs":{"url":"https://github.com/arciisine/active-win/issues"},"homepage":"https://github.com/arciisine/active-win#readme","_id":"@arcsine/active-win@5.0.2","_npmVersion":"6.5.0","_nodeVersion":"11.8.0","_npmUser":{"name":"arcsine","email":"timothy.soehnlin@gmail.com"},"dist":{"integrity":"sha512-+3xkdwmUhpnhQb4Wcb1drGkeCmuvOKOqDlqTLkorBzi2T9L9DLJXUZgLJ2gkEKOt10Y3q9GdAWMX9UIVQi5veg==","shasum":"9b8cbb4cb24b8dfba1d120bc312f5b9e3f30d6ab","tarball":"https://registry.npmjs.org/@arcsine/active-win/-/active-win-5.0.2.tgz","fileCount":8,"unpackedSize":10079629,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcTlsXCRA9TVsSAnZWagAA850P/i2eBjNND32FQ6Ooprd5\n+8m9XzGY69D0VE6J76jm63tzeMIdn3Tt0F3vqY9AEPDEkzxYYhfZpe5iBRUG\np4+nJ3jO6iR0IZK08mJCUIof4WDptVnLsyne4SN9kEw+nWEbclEMIQ8kUbdE\nEdPrluDGQCE5LZkz3j7sZNz4nNZR8bkjEQeaZ9CuUCyubpcJ19bmC592RNJC\njd8iJHpssybQk+nBJEOUVee4u9oUFBQDvd7JWp0bh/v5ye8raxvccedcKMuz\ne6f/U/jwCCncGf0YnETmX3EdYL1HILGKPYTxSvM9+K6SfejbGzHVpmhMq/Qw\n7YUlqRwa+kwCM3jwf41kfDpOPCFbK/g+NOdtnY2sTu4U5JxHY2k8M4j44gLN\nrHWS5iqWTC0ftgKmkzBuoonOqm0u0hrnW/O8PzoZ4UF9cpCAaZysPdMx3yJU\nrHAu7eTK9G44DqOKvU87ptWts9vQLp43f7dKBy1fr02QSzDXZMCopD+lxGaP\nUbh6iEyQ3f3dIicNvsLWOriQTbWYpEZVYQLt2DPKPs/jBYMcd+iM/lIxcGbX\nsWnoXGHwZeWXkP/ii4w7H2N2qq9FbMBikpk05wIo6q8fBU2EVowYRjFOxcei\n1WbXilxjiT+Wym0GsAioXBQe+tfFQpuHB9lcYrXsjG7RNj/V/r8gFNMIM6bR\nl+Jp\r\n=o+iQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGNLtA0u7yoFbREV45o4gu1pDcmadEFwfY2BxQBZnBQ9AiBs2L+8CsGN4/jG7VZBugzBHdWZ5ks9zOOSHI0QhngYtQ=="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/active-win_5.0.2_1548638999116_0.43083678804035075"},"_hasShrinkwrap":false,"deprecated":"This package has now been renamed to @arcsine/win-info"},"5.0.3":{"name":"@arcsine/active-win","version":"5.0.3","description":"Get metadata about the active window (title, id, bounds, screens, owner, etc). Works on macOS, X11-based Desktops (Linux, BSD), Windows.","license":"MIT","repository":{"type":"git","url":"git+https://github.com/arciisine/active-win.git"},"author":{"name":"Timothy Soehnlin","email":"timothy.soehnlin@gmail.com","url":"github.com/arciisine"},"engines":{"node":">=8"},"scripts":{"test":"ava","build-win32":"csc native/win32/*.cs -Out:bin/active-win-win32.exe","build-x11":"cp native/x11/main.js bin/active-win-x11.js","compile-darwin":"swift build --package-path=native/darwin --configuration=release --static-swift-stdlib","move-darwin":"mv native/darwin/.build/release/active-win bin/active-win-darwin","build-darwin":"npm run compile-darwin && npm run move-darwin","compile":"mkdir bin; npm run build-x11 && npm run build-darwin && npm run build-win32","prepublish":"npm run compile"},"maintainers":[{"name":"arcsine","email":"timothy.soehnlin@gmail.com"}],"keywords":["macos","linux","x11","windows","app","application","window","win","active","focused","current","title","name","id","pid","screenshot","capture","metadata","bounds","memory","usage","bundleid"],"devDependencies":{"ava":"^0.25.0"},"gitHead":"4a0cc33620eb79170673ad4956afdf6745009dac","bugs":{"url":"https://github.com/arciisine/active-win/issues"},"homepage":"https://github.com/arciisine/active-win#readme","_id":"@arcsine/active-win@5.0.3","_npmVersion":"6.5.0","_nodeVersion":"11.8.0","_npmUser":{"name":"arcsine","email":"timothy.soehnlin@gmail.com"},"dist":{"integrity":"sha512-j0jxsI+2zu+ux5rNl/oyqwJy3f+BsaoreJ45LuTDRSiqBCrMFD0XLMimgUDICSTl7bk9/+BfyXhedZqPmoTSyg==","shasum":"c025eec3df33078ea3343f1dfb53273b2ca76d68","tarball":"https://registry.npmjs.org/@arcsine/active-win/-/active-win-5.0.3.tgz","fileCount":8,"unpackedSize":10079629,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcTmbCCRA9TVsSAnZWagAA6zIP/1TnfKKigq/8F6Kd3HZR\nUgMJ2cUK9N2c/5J23NBHEZN/82UfNrJt0rvzWj12ilhX1ezsNBWxWWLt9SlD\nhwHnu6hIDNbX7ytwvINYc3R5/x4+mpjyS5F+8ECjwyOTsnzd/9Iw2wsnxL+J\nrV80Iss1jCp1zKGFnvF+9h21NnDIkj+mOfW0s6xgojUn3amaM2UtvrnzhZMY\nc3IWoYfc/s655uDJbPBVAvzkWaEqYOFxYE6GohaNqvZ+7Vn+IYckjfthnrOK\natfBtrKl7iTuNCVsYePdo1uvEA+hl2jlv5CwlYjkpVa3L7xAOa1kWppwQ9yF\nrGB58iEylE4wyjTqWBwfV9eILocCQO7T3SoW3bR9qLzoYuXej0+5TQYkzkbC\nGJr+SCw1mL//gX1Rc1rhX3CBWP55jY9eMhHOG9y0wRrKYsZd1GIfzvc/MSlZ\nRzELw5l4AMp7TJotKWiozGbSW5NAOBlmX1P6qvrEdmodU6ttbyLi9fO0VuZ3\nD+7zucKmPPsJ3bueRxBNu+0bKjNH4S/T/qCQi1DelsS/JzKIzEtCpLqt21gn\neBMURGVxpcMMsKzwj0jp9u4cREmV4kmSERlSpjVttyi7mx0M0Hqf9D8nx/Qx\na+UHMMOArwkVv/zaHis8c5xDrELr7hOgbfb7SdE9lHouL78Y8sCym7CROfbV\nvzhu\r\n=hznL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD51ho85X1LZW8a3Jw/KYdVsb7LAoFCV1n4BKX07yTgGgIgQgnXCr/TthDhXZXr7mFSf8FFov9g3yUYhlzo9zPD3yM="}]},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/active-win_5.0.3_1548641986179_0.6098803023668997"},"_hasShrinkwrap":false,"deprecated":"This package has now been renamed to @arcsine/win-info"}},"time":{"created":"2019-01-22T01:38:21.688Z","5.0.0":"2019-01-22T01:38:22.121Z","modified":"2022-04-04T15:21:40.420Z","5.0.1":"2019-01-28T01:26:55.359Z","5.0.2":"2019-01-28T01:29:59.403Z","5.0.3":"2019-01-28T02:19:46.375Z"},"maintainers":[{"name":"arcsine","email":"timothy.soehnlin@gmail.com"}],"description":"Get metadata about the active window (title, id, bounds, screens, owner, etc). Works on macOS, X11-based Desktops (Linux, BSD), Windows.","homepage":"https://github.com/arciisine/active-win#readme","keywords":["macos","linux","x11","windows","app","application","window","win","active","focused","current","title","name","id","pid","screenshot","capture","metadata","bounds","memory","usage","bundleid"],"repository":{"type":"git","url":"git+https://github.com/arciisine/active-win.git"},"author":{"name":"Timothy Soehnlin","email":"timothy.soehnlin@gmail.com","url":"github.com/arciisine"},"bugs":{"url":"https://github.com/arciisine/active-win/issues"},"license":"MIT","readme":"# @arcsine/active-win \nForked from [active-win](https://github.com/sindresorhus/active-win), by Sindre Sorhus\n\nGet metadata about the [active window](https://en.wikipedia.org/wiki/Active_window) (title, id, bounds, owner, etc)\n\nWorks on macOS, Windows and X11-based Desktops (Linux, BSD). Wayland support is missing.\n\n## Install\n\n```\n$ npm install active-win\n```\n\n## Usage\n\n```js\nconst activeWin = require('active-win');\n\n(async () => {\n\tconsole.log(await activeWin());\n\t/*\n\t{\n\t\ttitle: 'Unicorns - Google Search',\n\t\tid: 5762,\n\t\tbounds: {\n\t\t\tx: 0,\n\t\t\ty: 0,\n\t\t\theight: 900,\n\t\t\twidth: 1440\n\t\t},\n\t\tscreens: [{\n\t\t\tx: 0,\n\t\t\ty: 0, \n\t\t\theight: 920,\n\t\t\twidth: 1440,\n\t\t\tindex: 0\n\t\t}],\n\t\towner: {\n\t\t\tname: 'Google Chrome',\n\t\t\tprocessId: 310,\n\t\t\tbundleId: 'com.google.Chrome',\n\t\t\tpath: '/Applications/Google Chrome.app'\n\t\t},\n\t\tmemoryUsage: 11015432\n\t}\n\t*/\n})();\n```\n\n\n```ts\nimport * as activeWin from 'active-win';\n\n...\nconsole.log(await activeWin());\n...\n\n...\nconsole.log(activeWin.sync());\n...\n\n```\n\n## API\n\n### activeWin()\n\nReturns a `Promise<Object>` with the result.\n\n### activeWin.sync()\n\nReturns an `Object` with the result.\n\n\n## Result\n\n- `title` *(string)* - Window title\n- `id` *(number)* - Window identifier\n- `bounds` *(Object)* - Window position and size\n\t- `x` *(number)*\n\t- `y` *(number)*\n\t- `width` *(number)*\n\t- `height` *(number)*\n- `screens` *(Array)* - Screens that overlap with the window\n\t- `x` *(number)*\n\t- `y` *(number)*\n\t- `width` *(number)*\n\t- `height` *(number)*\n\t- `index` *(number)* - Display index\n- `owner` *(Object)* - App that owns the window\n\t- `name` *(string)* - Name of the app\n\t- `processId` *(number)* - Process identifier\n\t- `bundleId` *(string)* - Bundle identifier *(macOS only)*\n\t- `path` *(string)* - Path to the app *(macOS and Windows only)*\n- `memoryUsage` *(number)* - Memory usage by the window *(macOS only)*\n\n\n## OS support\n\nIt works on macOS, Windows 7+, and X11-based desktops (Linux, BSD).\n\n**Note**: On Windows, there isn't a clear notion of a \"Window ID\". Instead it returns the memory address of the window \"handle\" in the `id` property. That \"handle\" is unique per window, so it can be used to identify them. [Read more…](https://msdn.microsoft.com/en-us/library/windows/desktop/ms632597(v=vs.85).aspx#window_handle).\n\n## Maintainers\n- [Sindre Sorhus](https://github.com/sindresorhus)\n- [Sebastián Ramírez](https://github.com/tiangolo)\n- [Timothy Soehnlin](https://github.com/arciisine)\n\n## License\n\nMIT\n","readmeFilename":"readme.md"}