Files
30-seconds-of-code/node_modules/better-opn/README.md
2019-08-20 15:52:05 +02:00

25 lines
505 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 desire browser name (name is platform dependent).
```js
const opn = require('better-opn');
opn('http://localhost:3000');
```
## Author
- [Michael Lin](https://michaellin.me)