npm.io
0.0.2 • Published 12 years ago

packent-utils

Licence
MIT
Version
0.0.2
Deps
0
Vulns
0
Weekly
0

packent utils

Chainable cli libary for formatting log messages. Heavely inspired by tj's component/utils.js

Installation

$ npm i --save packent-utils

Api

  • utils#title( type, msg )
  • utils#section( type, msg )
  • utils#log( type, msg, [color], [style] )
  • utils#fatal()
  • utils#warn( type, msg )
  • utils#error( msg )
  • utils#bytes()

Each of them are very similar in their function, but there are some formatting differences like spacing, weigth or color.

Take a look at the source to learn more for now. More docs soon.

License

Mit

Keywords