JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 62955
  • Score
    100M100P100Q150230F
  • License MIT

Pretty print messages on the terminal

Package Exports

  • prettycli

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (prettycli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme



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