prettycli

1.4.3 • Public • Published



Pretty print messages on the terminal

Usage

 
// Require what you need from prettycli
 
const {info, warn} = require('prettycli');
 
/*
 
  There are 6 functions:
 
  Print to stdout:
  1. info: (label, message)
  2. loading: (label, message)
  3. warn: (message)
  4. error: (message)
 
  Returns pretty string (does not print)
  5. command: (command)
  6. link: (url)
 
*/
 
if (!process.env.PRODUCTION) info('BUILD', 'Running dev stuff');
else warn('This is production mode! Are you sure?');
 

 

license

MIT © siddharthkp

Readme

Keywords

none

Package Sidebar

Install

npm i prettycli

Weekly Downloads

41,684

Version

1.4.3

License

MIT

Last publish

Collaborators

  • siddharthkp