consolify

Turn your browser window into a console

MIT 17 个版本
安装
npm install consolify
yarn add consolify
pnpm add consolify
bun add consolify
README

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".
-o, --outfile  Write the standalone HTML page to the supplied path as well as
               passing it through to browserify

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

版本列表
2.2.1 2021-12-17
2.2.0 2016-07-27
2.1.0 2016-01-19
2.0.1 2015-06-24
2.0.0 2015-04-15
1.0.0 2014-09-12
0.8.0 2014-07-06
0.7.0 2014-01-11
0.6.0 2013-11-21
0.5.1 2013-11-19
0.5.0 2013-11-19
0.4.1 2013-09-25
0.4.0 2013-06-05
0.3.0 2013-05-11
0.2.0 2013-05-01
0.1.1 2013-04-29
0.1.0 2013-04-27