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.
npm install seanewest/thrust-cat
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);
}
})
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