UNPKG

@gitsunmin/k-number

Version:

숫자를 입력하면 한글 수사를 반환하는 기능을 제공하는 라이브러리입니다. (ex. 1234 -> 천이백삼십

12 lines (11 loc) 782 B
import { KoreanUnit, NumberAndKoreanRecord } from '../types'; export declare const STRING_NUMBERS: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"]; export declare const KOREAN_NUMBERS: readonly ["일", "이", "삼", "사", "오", "육", "칠", "팔", "구"]; export declare const KOREAN_UNITS: readonly ["십", "백", "천", "만", "억", "조", "경"]; export declare const K_NUMBER_FORMAT: readonly ["korean-only", "unit-only", "mixed"]; export declare const MAX_NUMBER = 9007199254740991; export declare const MIN_NUMBER = -9007199254740991; export declare const NUMBER_AND_KOREAN_RECORD: NumberAndKoreanRecord; export declare const BIG_UNITS: KoreanUnit[]; export declare const SMALL_UNITS: KoreanUnit[]; export declare const LOG_PREFIX = "[@gitsunmin/k-number] >";