Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/azawawi/raku-browser-open

Open a browser in a given URL
https://github.com/azawawi/raku-browser-open

browser raku

Last synced: about 2 months ago
JSON representation

Open a browser in a given URL

Awesome Lists containing this project

README

        

# Browser::Open

[![Actions
Status](https://github.com/azawawi/raku-browser-open/workflows/test/badge.svg)](https://github.com/azawawi/raku-browser-open/actions)

This is a humble Raku port of Perl's
[Browser::Open](http://metacpan.org/module/Browser::Open).

## Installation

To install it using zef, the Raku module manager:

```
$ zef install Browser::Open
```

## Synopsis

```Raku
use Browser::Open;

my $ok = open-browser($url);
```

## Description

This module allow you to open URLs in a browser. A set of known browser commands
per OS-name is tested for presence, and the first one found is executed. With an
optional parameter, all known commands are checked.

## Testing

- To run tests:
```
$ prove --ext .rakutest -ve "raku -I."
```

- To run all tests including author tests (Please make sure
[Test::Meta](https://github.com/jonathanstowe/Test-META) is installed):
```
$ zef install Test::META
$ AUTHOR_TESTING=1 prove --ext .rakutest -ve "raku -I."
```

## Author

Ahmad M. Zawawi, azawawi on #raku, https://github.com/azawawi/

Original Perl Author: Pedro Melo ``

## License

MIT License