🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more

prettycli

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prettycli

Pretty print messages on the terminal

1.4.3
latest
Version published
Weekly downloads
58K
26.15%
Maintainers
1
Weekly downloads
 
Created



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

FAQs

Package last updated on 27 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts