UNPKG
@fxext/cli
Version:
latest (2.0.5)
2.0.5
1.4.1
1.4.0
1.3.0
1.2.1
1.2.0
1.1.1
1.0.2
1.0.1
1.0.0
fanxing miniapp cli
@fxext/cli
/
lib
/
log.js
14 lines
(12 loc)
•
221 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const
chalk =
require
(
'chalk'
);
module
.
exports
= {
error
(
text
) {
console
.
log
(chalk.
red
(text)); },
info
(
text
) {
console
.
log
(chalk.
gray
(text)); },
hint
(
text
) {
console
.
log
(chalk.
green
(text)); }, };