npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

jma-lang-ko

v1.0.1

Published

Translate JMA-related Japanese terms (epicenter, region, tsunami, etc.) into Korean

Downloads

214

Readme

JMA-LANG-KO

JMA-LANG-KO는 일본 기상청(JMA, Japan Meteorological Agency)의 지진·해일 정보에서 사용되는 일본어 지역명, 진앙명 등을 한국어로 변환하는 라이브러리입니다.
Node.js 환경에서 간단히 불러와 사용할 수 있습니다.


📦설치

npm install jma-lang-ko

🔎사용 예시

import {JPEpicenterToKR} from 'jma-lang-ko'

console.log(JPEpicenterToKR("350"))
// 출력 예시: 도쿄도 23구

🚩제공 함수

| 함수명 | 기능 | 입력값 | 출력값 | | --- | --- | :-: | --- | | JPEpicenterToKR | 지진의 진앙지명(코드)을 한국어로 변환합니다 | "350" | "도쿄도 23구" | | JPPrefToKR | 도도부현 이름(코드)을 한국어로 변환합니다. | "13" | "도쿄도" | | JPQuakeAreaToKR | 지진정보 세부구역 이름(코드)을 한국어로 변환합니다. | "221" | "미야기 현 중부" | | JPCityToKR | 시정촌명(코드)을 한국어로 변환합니다. | "1311300" | "도쿄 시부야 구" | | JPCommentToKR | 지진/해일 전문에서의 고정부가문 코드를 한국어로 변환합니다. | "0211" | "해일경보 등(대해일경보·해···" | | JPTsunamiAreaToKR | 해일예보구 이름(코드)을 한국어로 변환합니다. | "312" | "도쿄 만 내만" | | JPTsunamiStationToKR | 해일관측점 이름(코드)을 한국어로 변환합니다. | "21060" | "이와테 해역 70km A" |

⚠️ 주의사항

  • 입력값은 반드시 문자열(string) 형태여야 합니다.
    예: JPEpicenterToKR("350") ✅ / JPEpicenterToKR(350)
    (숫자로 입력 시 일치 비교에 실패하여 변환되지 않습니다.)

  • Node.js 20 이상 환경에서 사용하는 것을 권장합니다.
    (JSON import ... with { type: "json" } 문법은 Node.js 20+ 이상에서 정식 지원됩니다.)

  • ES Module("type": "module") 환경을 사용해야 합니다.
    CommonJS(require)에서는 바로 사용할 수 없습니다.
    CommonJS 환경에서는 동적 import를 이용해 다음과 같이 사용할 수 있습니다:

    const { JPEpicenterToKR } = await import('jma-lang-ko');
    console.log(JPEpicenterToKR("350"));
  • JSON 데이터(data/*.json)는 정기적으로 업데이트됩니다.
    새로운 관측점 등 코드가 추가된 경우, npm update jma-lang-ko로 최신 버전을 받아주세요.

🧾 라이선스

MIT License © 2025 monggae0319

🐞 버그 신고

문제가 있거나 새로운 지역명이 필요하다면 이슈를 남겨주세요. Github Issues