@agent-infra/browser-finder 0.1.6 → 0.2.0-alpha.3

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
@@ -57,7 +57,8 @@ import { BrowserFinder } from '@agent-infra/browser-finder';
57
57
  const customLogger = {
58
58
  info: (msg: string, ...args: any[]) => console.log(`INFO: \${msg}`, ...args),
59
59
  warn: (msg: string, ...args: any[]) => console.warn(`WARN: \${msg}`, ...args),
60
- error: (msg: string, ...args: any[]) => console.error(`ERROR: \${msg}`, ...args),
60
+ error: (msg: string, ...args: any[]) =>
61
+ console.error(`ERROR: \${msg}`, ...args),
61
62
  // ... other logger methods
62
63
  };
63
64
 
@@ -82,17 +83,20 @@ const browser = finder.findBrowser();
82
83
  Finds a browser and returns its path and type.
83
84
 
84
85
  **Parameters:**
86
+
85
87
  - `name` (optional): Specific browser to find (`'chrome'` | `'edge'` | `'firefox'`)
86
88
 
87
89
  **Returns:**
90
+
88
91
  ```typescript
89
92
  {
90
- path: string; // Full path to browser executable
93
+ path: string; // Full path to browser executable
91
94
  type: BrowserType; // Browser type ('chrome' | 'edge' | 'firefox')
92
95
  }
93
96
  ```
94
97
 
95
98
  **Examples:**
99
+
96
100
  ```typescript
97
101
  // Find any browser (automatic fallback)
98
102
  const anyBrowser = finder.findBrowser();
@@ -106,16 +110,19 @@ const firefox = finder.findBrowser('firefox');
106
110
  ## Supported Browsers
107
111
 
108
112
  ### Chrome
113
+
109
114
  - **Windows**: Chrome, Chrome Beta, Chrome Dev, Chrome Canary
110
115
  - **macOS**: Google Chrome, Google Chrome Beta, Google Chrome Dev, Google Chrome Canary
111
116
  - **Linux**: google-chrome-stable, google-chrome, google-chrome-beta, google-chrome-dev, chromium-browser, chromium
112
117
 
113
118
  ### Edge
119
+
114
120
  - **Windows**: Edge, Edge Beta, Edge Dev, Edge Canary
115
121
  - **macOS**: Edge, Edge Beta, Edge Dev, Edge Canary
116
122
  - **Linux**: microsoft-edge-stable, microsoft-edge-beta, microsoft-edge-dev
117
123
 
118
124
  ### Firefox
125
+
119
126
  - **Windows**: Mozilla Firefox, Firefox Developer Edition, Firefox Nightly
120
127
  - **macOS**: Firefox, Firefox Developer Edition, Firefox Nightly
121
128
  - **Linux**: firefox (all editions use same binary name)
@@ -164,13 +171,11 @@ This library is optimized for fast browser detection:
164
171
 
165
172
  ## License
166
173
 
167
- Apache-2.0
168
-
169
- ## Contributing
174
+ Apache License 2.0.
170
175
 
171
- Contributions are welcome! Please feel free to submit a Pull Request.
176
+ ## Credits
172
177
 
173
- ## Related Projects
178
+ Special thanks to the open source projects that inspired this toolkit:
174
179
 
175
180
  - [edge-paths](https://github.com/shirshak55/edge-paths) - Edge browser path finder
176
181
  - [chrome-finder](https://github.com/gwuhaolin/chrome-finder) - Alternative Chrome finder
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,WAAW,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@agent-infra/browser-finder",
3
3
  "description": "find browser in your system",
4
- "version": "0.1.6",
4
+ "version": "0.2.0-alpha.3",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
7
7
  "types": "dist/index.d.ts",
@@ -29,11 +29,11 @@
29
29
  },
30
30
  "devDependencies": {
31
31
  "@types/which": "3.0.4",
32
- "@types/node": "24.1.0",
33
- "typescript": "5.8.3",
32
+ "@types/node": "24.7.1",
33
+ "typescript": "5.9.3",
34
34
  "vitest": "3.2.4",
35
35
  "@vitest/coverage-v8": "3.2.4",
36
- "@rslib/core": "0.11.0"
36
+ "@rslib/core": "0.15.0"
37
37
  },
38
38
  "scripts": {
39
39
  "dev": "rslib build --watch",