New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

consolify

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

consolify

Turn your browser window into a console

  • 2.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
979
increased by31.41%
Maintainers
1
Weekly downloads
 
Created
Source

Consolify

Build Status SemVer License

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

consolify

  • Designed for Browserify
  • Source maps aware
  • ANSI color support using ANSI up
  • Beautiful Base 16 color scheme

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

Keywords

FAQs

Package last updated on 17 Dec 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc