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
/
line.js
14 lines
(11 loc)
•
237 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict'
let
chalk =
require
(
'chalk'
)
exports
=
module
.
exports
=
function
(
line, column
) {
if
(line ===
undefined
) { line =
0
}
if
(column ===
undefined
) { column =
0
}
return
chalk.
white
(
`[
${line}
:
${column}
]`
) }