UNPKG
@hygiene/cli
Version:
latest (0.0.4)
0.0.4
0.0.3
0.0.2
Keep your TODOs and FIXMEs healthy
github.com/Leko/hygiene
Leko/hygiene
@hygiene/cli
/
src
/
reporter
/
json.ts
9 lines
(6 loc)
•
257 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
import
{
Reporter
,
ReportMessage
}
from
"./Reporter"
;
export
const
stringify = (
comment
:
ReportMessage
):
string
=>
JSON
.
stringify
(comment);
export
const
json
:
Reporter
=
async
comments => { comments.
map
(stringify).
forEach
(
msg
=>
console
.
log
(msg)); };