prettycli

2018-12-06 admin

prettycli是什么

什么是prettycli,Pretty print messages on the terminal

prettycli使用教程帮助文档

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

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-47452.html

文章标题:prettycli

回到顶部