3.0.0 • Published 9 years ago

clout v3.0.0

Weekly downloads
7
License
MIT
Repository
github
Last release
9 years ago

clout Build Status

Ultra-simple logging for CLIs

Install

$ npm install --save clout

Usage

var log = require('clout')('my-tool')
log('hi')
log.error('oh noes')

API

clout(name, [logger]) -> function

Creates a logger function with an error method.

name

Required
Type: string

The name of your logger. This will be printed before log messages.

logger

Type: object
Default: console

An object with log and error methods that the clout logger will call.

License

MIT © Ben Drucker