consolify

Turn your browser window into a console

Consolify

Generate standalone HTML pages that turn the browser window into a console.

$ npm install consolify
$ browserify --debug ./node_modules/consolify ./test.js | node_modules/.bin/consolify > test.html

Options:

-t, --title    Set the document title (defaults to "Consolify")
-r, --reload   Auto reload on change

See the browser-reload documentation for details on --reload.

Consolify works great with Mocha through Mocaccino:

$ browserify -p [ mocaccino -R spec ] ./node_modules/consolify ./test/*.js | node_modules/.bin/consolify > test.html
var consolify = require('consolify');
 
consolify(process.stdin, {
  title  : 'Consolify',
  reload : false
}).pipe(process.stdout);

MIT