Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    pastelpublic

    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"
    }));

    Keywords

    none

    install

    npm i pastel

    Downloadsweekly downloads

    7

    version

    0.0.2

    license

    none

    last publish

    collaborators

    • avatar