sweet-cli
v0.1.0
Published
Simple utility for pretty cli logging.
Downloads
4
Maintainers
Readme
Sweet-cli
Create beautiful cli-interfaces with ease.
Installation
npm install --save sweet-cli
Usage
const sweet = require('sweet-cli');
// Possible log types: success | error| warning | info | log | transparent
// With a custom title
sweet.error('ERROR', 'This is an error');
// Without a title
sweet.info('App running at example.com');
// Multiline messages get padded automatically
sweet.transparent('Build time: 0.625ms\nBundle size: 101 KB');
// clear console
sweet.clear();
Output of the above code sample:
Special Thanks
Andrey Popp for his inspirational tweet and Michael Cereda for pretty-cli
License
MIT, see LICENSE.md