clout
v3.0.0
Published
Simple logging for CLIs
Downloads
837
Readme
clout 
Ultra-simple logging for CLIs
Install
$ npm install --save cloutUsage
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
