re-korean-numeral은 숫자를 한글 숫자로 변환해주는 리스트립트(ReScript) 모듈 입니다.
1234 -> 1,234 1234567890 -> 12억 3,456만 7,890 1234567890 -> 12억 3,456만 // 만 이하 절삭
npm i @greenlabs/re-korean-numeral or yarn add @greenlabs/re-korean-numeral
"bs-dependencies": [ "@greenlabs/re-korean-numeral" ]
KoreanNumeric.fromInt(1234, ()) // 1,234
KoreanNumeric.fromFloat(1234567890.1, ~drop=1, ()) // 12억 3,456만
KoreanNumeric.fromString("1234567890987654321", ~drop=1, ()) // 123경 4,567조 8,909억 8,765만
npm run test or yarn test
ReScript module to convert the number to Korean
The npm package @greenlabs/re-korean-numeral receives a total of 399 weekly downloads. As such, @greenlabs/re-korean-numeral popularity was classified as not popular.
We found that @greenlabs/re-korean-numeral demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 open source maintainers collaborating on the project.
Did you know?
Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.