jma-lang-ko 2.1.0 → 2.1.1
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/README.md +7 -4
- package/package.json +1 -1
- package/src/jma/index.js +2 -2
package/README.md
CHANGED
|
@@ -19,9 +19,12 @@ import {earthquake, tsunami} from 'jma-lang-ko'
|
|
|
19
19
|
console.log(earthquake.EarthquakeWarningKR('31'))
|
|
20
20
|
// 출력 예시: 긴급지진속보(경보)
|
|
21
21
|
console.log(tsunami.TsunamiWarningKR('00'))
|
|
22
|
-
// 출력 예시:
|
|
22
|
+
// 출력 예시: 해일 없음
|
|
23
23
|
```
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
```earthquake```, ```tsunami```, ```volcano``` 함수는 ```string | number``` 타입의 코드를 입력받을 수 있습니다.
|
|
26
|
+
|
|
27
|
+
```jma``` 함수는 ```string``` 타입을 지원합니다.
|
|
25
28
|
|
|
26
29
|
## 🚩제공 함수
|
|
27
30
|
### earthquake
|
|
@@ -60,8 +63,8 @@ console.log(tsunami.TsunamiWarningKR('00'))
|
|
|
60
63
|
### jma
|
|
61
64
|
| 함수명 | 코드 종류 | 입력값 | 출력값 |
|
|
62
65
|
| --- | --- | :-: | --- |
|
|
63
|
-
|
|
|
64
|
-
|
|
|
66
|
+
| OfficeKR | - | "札幌管区気象台" | "삿포로 관구 기상대" |
|
|
67
|
+
| OfficeEnKR | - | "JPSP" | "삿포로 관구 기상대" |
|
|
65
68
|
|
|
66
69
|
## 참고
|
|
67
70
|
- [스프레드시트](https://docs.google.com/spreadsheets/d/17cB-37OMFv_xTEbMl0HCRVv635JfL1TiuYq6dff8Gdw/edit?usp=sharing) 에서 코드를 확인하실 수 있습니다.
|
package/package.json
CHANGED
package/src/jma/index.js
CHANGED
|
@@ -12,7 +12,7 @@ export const jma = {
|
|
|
12
12
|
* @example
|
|
13
13
|
* jma.KanshoKR("札幌管区気象台"); // "삿포로 관구 기상대"
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
OfficeKR : createTranslator(kansho),
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* 기상청 관서코드(영문)를 한국어로 변환합니다.
|
|
@@ -22,5 +22,5 @@ export const jma = {
|
|
|
22
22
|
* @example
|
|
23
23
|
* jma.KanshoEnKR("JPSP"); // "삿포로 관구 기상대"
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
OfficeEnKR : createTranslator(kansho_en),
|
|
26
26
|
}
|