@miniben90/x-win 0.4.3 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -51,7 +51,8 @@ console.log(currentWindow);
51
51
  title: "● README.md - x-win - Visual Studio Code",
52
52
  usage: {
53
53
  memory: 113270784
54
- }
54
+ },
55
+ url: ""
55
56
  }
56
57
  ```
57
58
 
@@ -88,7 +89,8 @@ console.log(windows);
88
89
  title: "● README.md - x-win - Visual Studio Code",
89
90
  usage: {
90
91
  memory: 113270784
91
- }
92
+ },
93
+ url: ""
92
94
  }]
93
95
  ```
94
96
 
@@ -106,6 +108,62 @@ sudo apt install libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0
106
108
 
107
109
  > macOS requires you to grant access for screen recording. If your project does not have it, the title will display `<unknown>` as its value.
108
110
 
111
+ # URLs (Only available for Darwin and Windows Systems)
112
+
113
+ It is possible to get URL of browsers window for macOS and Windows.
114
+
115
+ ## Windows
116
+
117
+ | Browser name | Tested |
118
+ |---|---|
119
+ | firefox | ✅ |
120
+ | firefox developer edition | ✅ |
121
+ | google chrome | ✅ |
122
+ | microsoft edge | ✅ |
123
+ | opera software - opera | ✅ |
124
+ | opera software - opera GX | ✅ |
125
+ | brave | |
126
+ | vivaldi | |
127
+ | iron | |
128
+ | epic | |
129
+ | chromium | ✅ |
130
+ | ucozmedia | |
131
+ | blisk | |
132
+ | maxthon | |
133
+ | beaker | |
134
+ | beaker browser | |
135
+
136
+ ## macOS
137
+
138
+ It will use AppleScript to get informations for chromium browsers and safari
139
+
140
+ ***For the moment Firefox and firefox developer edition are not supported***
141
+
142
+ | Browser name | Tested |
143
+ |---|---|
144
+ | Safari | ✅ |
145
+ | Safari Technology Preview | |
146
+ | google Chrome | ✅ |
147
+ | google Chrome beta | |
148
+ | google Chrome dev | |
149
+ | google Chrome canary | |
150
+ | brave Browser | |
151
+ | brave Browser beta | |
152
+ | brave Browser nightly | |
153
+ | microsoft edge | ✅ |
154
+ | microsoft edge Beta | |
155
+ | microsoft edge Dev | |
156
+ | microsoft edge Canary | |
157
+ | mighty | |
158
+ | ghost browser | |
159
+ | bookry wavebox | |
160
+ | pushplaylabs sidekick | |
161
+ | opera software - Opera | ✅ |
162
+ | opera software - OperaNext | |
163
+ | opera software - OperaDeveloper | |
164
+ | opera software - OperaGX | ✅ |
165
+ | Vivaldi | |
166
+
109
167
  <hr class="padding-top: 30px;padding-bottom:30px">
110
168
 
111
169
  # Project References
package/index.d.ts CHANGED
@@ -37,6 +37,7 @@ export interface WindowInfo {
37
37
  position: WindowPosition
38
38
  info: ProcessInfo
39
39
  usage: UsageInfo
40
+ url: string
40
41
  }
41
42
  export function activeWindow(): WindowInfo
42
43
  export function openWindows(): Array<WindowInfo>
package/index.js CHANGED
@@ -17,7 +17,7 @@ function isMusl() {
17
17
  // For Node 10
18
18
  if (!process.report || typeof process.report.getReport !== 'function') {
19
19
  try {
20
- const lddPath = require('child_process').execSync('which ldd').toString().trim();
20
+ const lddPath = require('child_process').execSync('which ldd').toString().trim()
21
21
  return readFileSync(lddPath, 'utf8').includes('musl')
22
22
  } catch (e) {
23
23
  return true
@@ -255,4 +255,4 @@ if (!nativeBinding) {
255
255
  const { activeWindow, openWindows } = nativeBinding
256
256
 
257
257
  module.exports.activeWindow = activeWindow
258
- module.exports.openWindows = openWindows
258
+ module.exports.openWindows = openWindows
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@miniben90/x-win",
3
3
  "description": "This package allows you to retrieve precise information about active and open windows on Windows, MacOS, and Linux. You can obtain the position, size, title, and other memory of windows.",
4
- "version": "0.4.3",
4
+ "version": "1.0.0",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
7
7
  "files": [
@@ -41,8 +41,8 @@
41
41
  "open"
42
42
  ],
43
43
  "devDependencies": {
44
- "@napi-rs/cli": "^2.15.2",
45
- "ava": "^5.1.1"
44
+ "@napi-rs/cli": "^2.16.1",
45
+ "ava": "^5.3.1"
46
46
  },
47
47
  "ava": {
48
48
  "timeout": "3m"
@@ -59,14 +59,14 @@
59
59
  "universal": "napi universal",
60
60
  "version": "napi version"
61
61
  },
62
- "packageManager": "yarn@3.5.0",
62
+ "packageManager": "yarn@3.6.1",
63
63
  "optionalDependencies": {
64
- "@miniben90/x-win-win32-x64-msvc": "0.4.3",
65
- "@miniben90/x-win-darwin-x64": "0.4.3",
66
- "@miniben90/x-win-linux-x64-gnu": "0.4.3",
67
- "@miniben90/x-win-darwin-arm64": "0.4.3",
68
- "@miniben90/x-win-win32-arm64-msvc": "0.4.3",
69
- "@miniben90/x-win-win32-ia32-msvc": "0.4.3",
70
- "@miniben90/x-win-darwin-universal": "0.4.3"
64
+ "@miniben90/x-win-win32-x64-msvc": "1.0.0",
65
+ "@miniben90/x-win-darwin-x64": "1.0.0",
66
+ "@miniben90/x-win-linux-x64-gnu": "1.0.0",
67
+ "@miniben90/x-win-darwin-arm64": "1.0.0",
68
+ "@miniben90/x-win-win32-arm64-msvc": "1.0.0",
69
+ "@miniben90/x-win-win32-ia32-msvc": "1.0.0",
70
+ "@miniben90/x-win-darwin-universal": "1.0.0"
71
71
  }
72
72
  }