A CLI to open local files in the default browser.
A CLI to open local file in the default browser.
npm install -g @eight04/start-browser
start-browser
Usage:
start-browser [--verbose] <target> [-- <args>...]
Options:
--verbose, -V Show verbose information.
<target> A file or a URL. If the file doesn't exist, the target is treated
as a URL.
<args> Other arguments for the browser.
To open myfile.txt
in the browser:
start-browser myfile.txt
I only tested it on Windows 7. If it doesn’t work on your platform, please file a PR.
0.2.1 (Jul 16, 2022)
0.2.0 (Jul 16, 2022)
0.1.3 (May 19, 2018)
regedit
to optional dependencies.0.1.2 (May 6, 2018)
0.1.1 (May 6, 2018)
@eight04/start-browser
.0.1.0 (May 6, 2018)