konglish 0.0.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +9 -5
- package/dist/index.cjs +24205 -10221
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +24205 -10221
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# Konglish -
|
|
1
|
+
# Konglish - 영어 한국어 발음 변환기
|
|
2
2
|
|
|
3
3
|
영어/외래어 문장을 한국어 발음 표기로 바꿔주는 TypeScript 라이브러리입니다.
|
|
4
|
-
영어는 발음매칭이 어렵기 때문에,
|
|
5
|
-
사전에 없는
|
|
4
|
+
영어는 발음매칭이 어렵기 때문에, 커스텀 사전을 사용해서 매칭했습니다.
|
|
5
|
+
사전에 없는 단어라면 그대로 유지되니 필요한 항목을 사전에 채워 넣어 주세요.
|
|
6
6
|
|
|
7
7
|
## 설치
|
|
8
8
|
|
|
@@ -44,10 +44,14 @@ const konglish = new Konglish({
|
|
|
44
44
|
},
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
konglish.latinToHangul("latte meetup"); // "라떼 밋업"
|
|
48
|
-
|
|
47
|
+
const sync = konglish.latinToHangul("latte meetup"); // "라떼 밋업"
|
|
48
|
+
const asyncOut = await konglish.latinToHangulAsync(
|
|
49
|
+
"latte meetup xylophone",
|
|
50
|
+
); // "라떼 밋업 xylophone"
|
|
49
51
|
```
|
|
50
52
|
|
|
53
|
+
`latinToHangulAsync`는 Promise를 반환하므로 비동기 코드에서 `await`로 호출할 수 있습니다.
|
|
54
|
+
|
|
51
55
|
|
|
52
56
|
## 라이선스
|
|
53
57
|
|