UNPKG
@pleisto/opencc
Version:
latest (0.1.0)
0.1.0
Conversion between Traditional and Simplified Chinese
github.com/pleisto/OpenCC
pleisto/OpenCC
@pleisto/opencc
/
node
/
dict.js
7 lines
(4 loc)
•
153 B
JavaScript
View Raw
1
2
3
4
5
6
7
const OpenCC =
require
(
'./opencc'
); const
input
= process.argv[
2
]; const
output
= process.argv[
3
]; OpenCC.generateDict(
input
,
output
,
"text"
,
"ocd2"
);