jonnyreeves / consolify

Turn your browser window into a console and run Node modules via Browserify

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consolify

Build Status SemVer License

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

consolify

Install with npm

$ npm install consolify

Usage

$ browserify --debug --plugin [ consolify {options} ] ./test.js > test.html

Options:

-b, --bundle   Set the path to the JavaScript bundle to generate. A script tag
               with this path will be generated into the output HTML. If not
               specified, the bundle is inlined.
-r, --reload   Auto reload on change.
-t, --title    Set the document title. Defaults to "Consolify".

Mocha support

Consolify works great with Mocha through Mocaccino:

$ browserify --plugin mocaccino --plugin consolify ./test/*.js > test.html

Automatic reloads

If --reload is given, a HEAD request is made every second to check whether the file was updated. This requires a web server that sends the Last-Modified header. Learn more in the browser-reload documentation.

License

MIT

About

Turn your browser window into a console and run Node modules via Browserify

License:MIT License


Languages

Language:JavaScript 85.6%Language:CSS 9.7%Language:HTML 2.9%Language:Makefile 1.8%