guardia-messenger/node_modules/better-opn/README.md
DESKTOP-TKLFCPRython f29f525c77 refactor: 101.79.17.164 → zioinfo.co.kr 전체 도메인 변환 + Manager UI 배포
- 37개 파일 IP → zioinfo.co.kr 치환 (소스/매뉴얼/설정/하네스)
- Manager DrConsole/NetworkConsole/CsapConsole 빌드 + /var/www/manager/ 배포
- 테스트: Manager HTTP 200, ITSM 신규 API 7개 전체 200

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-31 10:09:17 +09:00

35 lines
926 B
Markdown

# better-opn
> A better opn. Reuse the same tab on Chrome for 👨‍💻. Inspire by [create-react-app](https://github.com/facebook/create-react-app)
## Install
> `$ yarn add better-opn`
> `$ npm install better-opn`
## Usage
If you wish to overwrite the default browser, override `BROWSER` environment variable to your desired browser name (name is platform dependent).
```js
const opn = require('better-opn');
opn('http://localhost:3000');
```
### Reuse tab by match host
In case your app can navigate to another pathnames and still want to reuse opened tab, set environment variable `OPEN_MATCH_HOST_ONLY=true` can tell this program to find reusable tab by only match the host part of your URL.
```js
process.env.OPEN_MATCH_HOST_ONLY = 'true';
opn('http://localhost:3000/foo/bar'); // This will reuse any tab with URL starting with http://localhost:3000/
```
## Author
- [Michael Lin](https://michaellin.me)