BrowserLauncher (browser_launcher v0.1.2) View Source
BrowserLauncher
This module provides a function to open URL with the default browser for your OS.
Installation
If available in Hex, the package can be installed
by adding browser_launcher
to your list of dependencies in mix.exs
:
def deps do
[
{:browser_launcher, "~> 0.1.0"}
]
end
Examples
URL can be either remote location or local file path.
Remote location:
iex> BrowserLauncher.open("https://elixir-lang.org/")
{"", 0}
Local file path:
iex> BrowserLauncher.open("file:///path/to/your.html")
{"", 0}
Author
License
MIT
Link to this section Summary
Functions
Opens URL with the default browser. URL can be either remote location or local file path.