webpager

0.2.0 • Public • Published

Webpager

Pipe html chunks to the browser:

$ echo "<h1>beep</h1>" | webpager
$ echo "*beep*" | markdown | webpager

Heavily inspired by bcat by Ryan Tomayko which was in turn inspired by TextMate's html output by Allan Odgaard.

Install

npm install -g webpager

Todo

  • peek at incoming stream;
  • don't include a html header if the stream already does;
  • if the stream doesn't look like html then send as plaintext

Readme

Keywords

none

Package Sidebar

Install

npm i webpager

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • quackingduck