UNPKG
wechaty-lab
Version:
latest (1.20.2)
next (1.22.3)
1.22.3
1.22.2
1.22.1
1.22.0
1.21.21
1.21.20
1.21.19
1.21.17
1.21.16
1.21.15
1.21.14
1.21.13
1.21.12
1.21.11
1.21.10
1.21.9
1.21.8
1.21.7
1.21.6
1.21.5
1.21.4
1.21.3
1.21.2
1.21.1
1.21.0
1.20.63
1.20.62
1.20.61
1.20.60
1.20.59
1.20.58
1.20.57
1.20.56
1.20.55
1.20.54
1.20.53
1.20.52
1.20.51
1.20.50
1.20.49
1.20.48
1.20.47
1.20.46
1.20.45
1.20.44
1.20.43
1.20.42
1.20.41
1.20.40
1.20.39
1.20.38
1.20.37
1.20.36
1.20.35
1.20.34
1.20.33
1.20.32
1.20.31
1.20.30
1.20.29
1.20.28
1.20.27
1.20.26
1.20.25
1.20.24
1.20.23
1.20.22
1.20.21
1.20.20
1.20.19
1.20.18
1.20.17
1.20.16
1.20.15
1.20.14
1.20.13
1.20.12
1.20.10
1.20.9
1.20.8
1.20.7
1.20.6
1.20.5
1.20.4
1.20.3
1.20.2
Wechaty is a RPA SDK for Chatbot Makers.
github.com/wechaty/
wechaty/wechaty
wechaty-lab
/
bin
/
clean-json.js
16 lines
(11 loc)
•
269 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env node
import
fs
from
'fs'
import
JSON
5
from
'json5'
const
file = process.
argv
[
2
]
// console.error('Converting file: ', file)
const
json =
JSON
5.
parse
( fs.
readFileSync
(file,
'utf8'
) )
console
.
info
(
JSON
.
stringify
(json,
null
,
' '
) )