A tiny utility for opening a file or a URL inside a browser of your choosing.
npm install --save tiny-browser-open
import open from 'tiny-browser-open';
// Open using Chrome
open ( 'https://example.com', { app: 'chrome' } );
// Open using Firefox
open ( 'https://example.com', { app: 'firefox' } );
// Open using Edge
open ( 'https://example.com', { app: 'edge' } );
// Open using Safari
open ( 'https://example.com', { app: 'safari' } );
MIT © Fabio Spampinato