Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/motemen/app-htmlcat
redirect stdin to web browser
https://github.com/motemen/app-htmlcat
Last synced: 3 months ago
JSON representation
redirect stdin to web browser
- Host: GitHub
- URL: https://github.com/motemen/app-htmlcat
- Owner: motemen
- Created: 2012-01-19T14:45:24.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2016-10-03T23:47:23.000Z (over 8 years ago)
- Last Synced: 2024-05-01T23:29:32.309Z (8 months ago)
- Language: Perl
- Homepage:
- Size: 15.6 KB
- Stars: 27
- Watchers: 4
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: Changes
Awesome Lists containing this project
README
# NAME
htmlcat - stdin to your browser
# SYNOPSIS
$ command-that-prints-to-stdout | htmlcat --exec=open
# DESCRIPTION
`htmlcat` renders stdin in HTML, by establishing a temporary HTTP server.
Requires modern browser that recognize [Server-Sent Events](https://html.spec.whatwg.org/multipage/comms.html#server-sent-events).
# FEATURES
* Highlights ANSI code in HTML
* Real-time stdin stream to browsers
* Support for multiple clients# OPTION
* --exec=_command_
Invokes _command_ with the URL `htmlcat` listens as the only argument.
Typically a command which opens a browser would be useful.* --host=_host_, --port=_port_
Specifies the host or port to listen. Actually they are
handled by [Plack::Runner](http://search.cpan.org/perldoc?Plack::Runner), so `htmlcat` does nothing with them.# AUTHOR
motemen
# THANKS TO
mala, for Server-sent events implementation
# LICENSE
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.