sweet-cli

0.1.0 • Public • Published

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

Package Sidebar

Install

npm i sweet-cli

Weekly Downloads

1

Version

0.1.0

License

MIT

Last publish

Collaborators

  • marvinhagemeister