Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

c-log

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

c-log

Pretty colorful cli logger for NodeJS(with table, success and more...)

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19
increased by26.67%
Maintainers
1
Weekly downloads
 
Created
Source

clog

Pretty colorful cli logger for NodeJS(with table, success and more...)

Screenshot

Screenshot

Screenshot

#Installing ###git

$ git clone https://github.com/a8m/clog.git

###npm

$ npm install c-log --save

#Usage

var clog = require('c-log');

//Simple logs with colors
logger.log("Lorem Ipsum...");
logger.info("Lorem Ipsum...");
logger.warn("Lorem Ipsum ..");

//Success and Error
function assert(expect, msg) {
  return expect 
    ? clog.success(msg) 
    : clog.error(msg);
}

//Clog.time/timeEnd
clog.time("fsRead");
//fake async
setTimeout(function(){
  logger.timeEnd("fsRead")
},2000);

//Clog.table
var persons = [
  { name: 'Doris Fox', age: 20, isActive: false, balance: '$3,128.12' },
  { name: 'Mike Loks', age: 32, isActive: true,  balance: '$12,132.1' },
  { name: 'Arle Sher', age: 12, isActive: false, balance: '$2,968.83' }
];
clog.table(persons);
/// Table Result:
╔═════════╤═══════════╤═════╤══════════╤═══════════╗
║ (index) │ name      │ age │ isActive │ balance   ║
╟─────────┼───────────┼─────┼──────────┼───────────╢
║ 0Doris Fox20false    │ $3,128.12 ║
╟─────────┼───────────┼─────┼──────────┼───────────╢
║ 1Mike Loks32true     │ $12,132.1 ║
╟─────────┼───────────┼─────┼──────────┼───────────╢
║ 2Arle Sher12false    │ $2,968.83 ║
╚═════════╧═══════════╧═════╧══════════╧═══════════╝

#License MIT <3

Keywords

FAQs

Package last updated on 03 Oct 2014

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