Socket
Book a DemoInstallSign in
Socket

@greenlabs/re-korean-numeral

Package Overview
Dependencies
Maintainers
4
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@greenlabs/re-korean-numeral

ReScript module to convert the number to Korean

0.1.2
latest
Source
npmnpm
Version published
Maintainers
4
Created
Source

re-korean-numeral

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
  • bsconfig.json 의존성 추가하기
"bs-dependencies": [
  "@greenlabs/re-korean-numeral"
]

사용방법

  • fromInt
KoreanNumeric.fromInt(1234, ())
// 1,234
  • fromFloat
KoreanNumeric.fromFloat(1234567890.1, ~drop=1, ())
// 12억 3,456만
  • fromString
KoreanNumeric.fromString("1234567890987654321", ~drop=1, ())
// 123경 4,567조 8,909억 8,765만

테스트

npm run test
or
yarn test

Keywords

ReScript

FAQs

Package last updated on 04 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.