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

caterpillar

Package Overview
Dependencies
Maintainers
1
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caterpillar

Caterpillar is an awesome, simple console logger for node.js. It supports grouping of messages, filtering log levels, colors, times, modules, custom formatters and custom transports. It's awesome.

  • 0.1.4
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
664
decreased by-47.68%
Maintainers
1
Weekly downloads
 
Created
Source

Caterpillar

Caterpillar is an awesome, simple, intuitive console logger for node.js. It supports grouping of messages, filtering log levels, colors, times, modules, custom formatters and custom transports.

Example

examples/console.coffee

# Requires
caterpillar = require "#{__dirname}/../lib/caterpillar.coffee"

# Create
logger = new caterpillar.Logger
	transports:
		level: 7

# Logs
for own name,code of logger.config.levels
	logger.log name, "this is #{name} and is level #{code}"

# Standard
logger.log ''
logger.log 'this is awesome'
logger.log 'this','is','awesome'

# Colors
colors = caterpillar.colors
logger.log ''
logger.log 'this is', colors.magenta.bold.italic.underline('awesome')

# Grouping
logger.config.autoFlush = false
logger.log ''
logger.log 'one'
logger.log 'two'
logger.log 'three'
setTimeout(
	-> logger.flush()
	3000
)

Install

  1. Install Node.js

  2. Install CoffeeScript

     npm -g install coffee-script
    
  3. Install Caterpillar

     npm install caterpillar
    

Thanks

Uses the following:

Inspired by the following:

License

Licensed under the MIT License Copyright 2011 Benjamin Arthur Lupton

Keywords

FAQs

Package last updated on 05 Oct 2011

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