Socket
Socket
Sign inDemoInstall

consoler

Package Overview
Dependencies
1
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    consoler

a smart console logger and debugger for your litter scripts


Version published
Weekly downloads
6
decreased by-62.5%
Maintainers
1
Install size
27.0 kB
Created
Weekly downloads
 

Readme

Source

logo consoler npm

another smart and colorful console logger

screenshot

How to install

$ npm install consoler

Sample code

var consoler = require('consoler');

// check out in your console
consoler.log('success','hey dude, well done !');

// or use default tag
consoler.log('hey dude, well done !');

// or use shortcuts
consoler.success('success!');
consoler.error('fail!');
consoler.loading('wait a moment!');

Run demos

$ git clone https://github.com/turingou/consoler.git
$ cd consoler/demo
$ node demo.js

Text align

text align defalut length is 8, try to change edge length like this:

consoler.align(20);

Colors Map

feel free to add your labels and colors in ./colors.json or add your event and the color

var consoler = require('consoler');
consoler.add('alldone','green');

Run unit-test (Mocha)

$ git clone https://github.com/turingou/consoler.git
$ cd consoler
$ npm install 
$ npm test

Keywords

FAQs

Last updated on 10 Sep 2014

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc