UNPKG
posthtml-w3c
Version:
latest (0.9.1)
0.9.1
0.9.0
0.8.2
0.8.1
0.8.0
0.2.0
W3C Validation for PostHTML
github.com/michael-ciniawsky/posthtml-w3c
posthtml-w3c
/
lib
/
type.js
12 lines
(9 loc)
•
256 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
'use strict'
let
chalk =
require
(
'chalk'
)
let
log =
require
(
'log-symbols'
)
exports
=
module
.
exports
=
function
(
type
) {
if
(
type
===
'info'
) {
return
chalk.
yellow
(
`
${log.warning +
' '
+
type
}
`
) }
return
chalk.
red
(
`
${log.error +
' '
+
type
}
`
) }