rocketlog

v0.1.1
Move console to terminal

RocketLog (WIP)

Bring console.log to terminal. Say goodbye to 'The console had gone before I opening the dev tool!'.

Screenshot

Install

$ npm install rocketlog -g # Global RocketLog to run socket server.
<script src="path/to/rocketlog.js"></script>

or use CommonJS:

$ npm install rocketlog
const Rocket = require('rocketlog');

Usage

Rocket.log('This is log')
Rocket.error('This is error')
Rocket.warn('This is warn')

Notes

  • You should remove the whole rocketlog.js in production environment without worring about the Rocket.log() not work. It will work when there is no RocketLog as console.log().

  • Connecting to socket server needs some time. So the faster console before connecting to socket server will not display on terminal.

License

MIT License

npm i rocketlog

Metadata

  • MIT
  • Whatever
  • Randy Lu
  • released 11/25/2015

Downloads

Maintainers