%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
# 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)