UNPKG
@tomsd/kuromoji-dict
Version:
latest (1.0.3)
1.0.3
1.0.2
1.0.1
1.0.0
dict directory for kuromoji.js
@tomsd/kuromoji-dict
/
index.js
7 lines
(5 loc)
•
176 B
JavaScript
View Raw
1
2
3
4
5
6
7
import
*
as
path
from
"path"
;
import
{ fileURLToPath }
from
"url"
;
export
function
getDictPath
(
) {
return
path.
join
(path.
dirname
(
fileURLToPath
(
import
.
meta
.
url
)),
"dict"
); }