0.1.0 • Published 8 years ago

sweet-cli v0.1.0

Weekly downloads
4
License
MIT
Repository
github
Last release
8 years ago

Sweet-cli

Create beautiful cli-interfaces with ease.

Build Status

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:

Visual output

Special Thanks

Andrey Popp for his inspirational tweet and Michael Cereda for pretty-cli

License

MIT, see LICENSE.md