pipe-to-browser utility
Clojure
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src/bro
.gitignore
.travis.yml
README.md
project.clj

README.md

bro

Build Status

A pipe-to-browser utility, inspired from this one.

bro pipes stdin to a web browser, using a temporary file.

Usage

echo "<h1>Don't tase me</h1>" | bro

From vim:

:!markdown % | bro

Building bro

If you have the lein bin plugin installed, make a standalone executable:

lein bin

Then install it, for instance with

sudo install bro /usr/bin

Note: if running directly from leiningen, use trampoline. For instance:

echo 'hi there' | lein trampoline run

This is due to this ant issue.

License

Copyright (C) 2012 Roma1n

Distributed under the Eclipse Public License, the same as Clojure.