Skip to content

seanewest/thrust-cat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Thrust-Cat

Pipe html into its own thrust browser window.

echo "<h1>hello</h1>" | thrust-cat 640 480

This will pop open its own bare-bones browser window with width 640 and height 480.

Specifying the width and height is optional.

Install

npm install seanewest/thrust-cat

API

var tcat = require('thrust-cat');
var width = 300;
var height = 300;
tcat("<h1>hello</h1>", width, height, function(err) {
  if (err) {
    console.err(err);
    process.exit(1);
  }
})

Pipeline Friends

Pipe your JS through an html wrapper with jstohtml

cat index.js | jstohtml | thrust-cat

Pipe and Browserify your JS with browserify

cat index.js | browserify - | jstohtml | thrust-cat

About

Pipe html into its own thrust browser window

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published