UNPKG
@humorhan/tinypng-loader
Version:
latest (0.1.0)
0.1.0
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.2-alpha.2
0.0.2-alpha.1
0.0.1-alpha.1
tinyPng
github.com/humorHan/tinypng-loader
humorHan/tinypng-loader
@humorhan/tinypng-loader
/
core
/
log.js
13 lines
(12 loc)
•
221 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
const
chalk =
require
(
'chalk'
);
module
.
exports
= {
success
(
str
) {
console
.
log
(chalk.
green
(str)); },
warn
(
str
) {
console
.
warn
(chalk.
yellow
(str)); },
error
(
str
) {
console
.
error
(chalk.
red
(str)); } };