0.1.1 • Published 8 years ago

rocketlog v0.1.1

Weekly downloads
9
License
MIT
Repository
-
Last release
8 years ago

RocketLog (WIP)

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

Screenshot

npm.io

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