1
0
Fork
You've already forked opener
0
No description
  • Erlang 79%
  • Gleam 21%
2025年07月27日 18:46:44 +02:00
.github/workflows removed style check for tests 2025年07月27日 17:43:33 +02:00
src 📝 added licence to vendored functions 2025年07月27日 18:26:09 +02:00
.gitignore initial commit 2025年07月22日 21:13:21 +02:00
gleam.toml removed not needed dependecies 2025年07月27日 18:46:44 +02:00
manifest.toml removed not needed dependecies 2025年07月27日 18:46:44 +02:00
README.md 📝 added better readme 2025年07月27日 18:03:27 +02:00

opener

Package Version Hex Docs

opener is a Gleam package to open files and URLs using platform-specific commands. It provides a simple interface for executing commands based on the operating system.

gleam add opener@1
importgleam/ioimportopenerfnmain()->Nil{caseopener.open("https://gleam.run"){Ok(_)->io.println("opened https://gleam.run in default browser")Error(err)->io.println("failed to open: https://gleam.run: "<>err.1)}}

Features

  • Platform detection to determine the appropriate command for opening files or URLs.
  • Support for macOS, Windows, and Linux.

Further documentation can be found at https://hexdocs.pm/opener.

Development

gleam run # Run the project
gleam test # Run the tests