项目作者: eight04

项目描述 :
A CLI to open local files in the default browser.
高级语言: JavaScript
项目地址: git://github.com/eight04/start-browser.git
创建时间: 2018-05-05T23:08:07Z
项目社区:https://github.com/eight04/start-browser

开源协议:MIT License

下载


start-browser

A CLI to open local file in the default browser.

Installation

  1. npm install -g @eight04/start-browser

Usage

  1. start-browser
  2. Usage:
  3. start-browser [--verbose] <target> [-- <args>...]
  4. Options:
  5. --verbose, -V Show verbose information.
  6. <target> A file or a URL. If the file doesn't exist, the target is treated
  7. as a URL.
  8. <args> Other arguments for the browser.

To open myfile.txt in the browser:

  1. start-browser myfile.txt

Compatibility

I only tested it on Windows 7. If it doesn’t work on your platform, please file a PR.

Changelog

  • 0.2.1 (Jul 16, 2022)

    • Fix: remove useless files in the package.
  • 0.2.0 (Jul 16, 2022)

    • Fix: failed starting Firefox. Replace x-default-browser with eight04/x-default-browser#dev
  • 0.1.3 (May 19, 2018)

    • Fix: move regedit to optional dependencies.
  • 0.1.2 (May 6, 2018)

    • Fix: missing binary.
  • 0.1.1 (May 6, 2018)

  • 0.1.0 (May 6, 2018)

    • First release.