25 lines
552 B
Markdown
25 lines
552 B
Markdown
# browser-dispatcher
|
|
|
|
A simple script to open a work or personal browser based on the URL.
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
bun run index.ts <url>
|
|
```
|
|
|
|
## Configuration
|
|
|
|
- `WORK_BROWSER`: The browser to use for work URLs.
|
|
- `PERSONAL_BROWSER`: The browser to use for personal URLs.
|
|
|
|
## Data
|
|
|
|
The data is stored in the `data.ts` file.
|
|
|
|
- `workDomains`: An array of domains that are considered work URLs.
|
|
- `directWorkURLs`: An array of URLs that are considered work URLs.
|
|
|
|
## How it works
|
|
|
|
The script checks the URL and opens the appropriate browser based on the URL. |