Skip to content

jaeschrich/pastel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pastel

super-colored connect logging middlware

Installation

npm install pastel

Usage

var pastel = require("pastel"),
connect = require("connect");

var app = connect();

app.use(pastel.log());

pastel.log accepts a config object. It has the following fields.

  • date
  • time
  • method
  • url

You can set them to any of the following color or style strings (from colors).

  • bold
  • italic
  • underline
  • inverse
  • yellow
  • cyan
  • white
  • magenta
  • green
  • red
  • grey
  • blue
  • rainbow
  • zebra
  • random

###Example Config

app.use(pastel.log({
	date: "yellow",
	time: "cyan",
	method: "magenta",
	url: "red"
}));

About

super-colored connect logging middlware

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published