@byuckchon-frontend/utils 1.4.3 → 1.5.0
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/dist/index.mjs +2456 -2007
- package/dist/index.umd.js +10 -9
- package/dist/src/DateUtils/index.d.ts +4 -0
- package/dist/src/validate/index.d.ts +1 -4
- package/package.json +1 -1
|
@@ -9,6 +9,10 @@ export declare const formatDate: (date: Date | string, pattern?: string) => stri
|
|
|
9
9
|
export declare const toISO: (date: Date) => string;
|
|
10
10
|
/** 날짜 파싱 함수 */
|
|
11
11
|
export declare const parseDate: (date: string, pattern?: string) => Date;
|
|
12
|
+
/** 특정 시점부터 현재까지 경과한 시간을 분 단위 문자열로 반환하는 함수 */
|
|
13
|
+
export declare const formatMinutesPassedSince: (date: Date | string) => string;
|
|
14
|
+
/** 초 단위 시간을 분:초 형식으로 반환하는 함수 */
|
|
15
|
+
export declare const formatSecondsToMinutesSeconds: (seconds: number) => string;
|
|
12
16
|
/** 이전 날짜 반환 함수 */
|
|
13
17
|
export declare const beforeDate: (firstDate: Date, secondDate: Date) => Date;
|
|
14
18
|
/** 이후 날짜 반환 함수 */
|
|
@@ -69,12 +69,9 @@ declare function validateJuminBefore2020(jumin: string): boolean;
|
|
|
69
69
|
*/
|
|
70
70
|
declare function validateJuminAfter2020(jumin: string): boolean;
|
|
71
71
|
/**
|
|
72
|
-
* 사업자등록번호를 검증합니다.
|
|
72
|
+
* 대한민국 사업자등록번호를 유효성을 검증합니다. (국세청 공식 알고리즘)
|
|
73
73
|
* @param number - 검증할 사업자등록번호 문자열 (하이픈 포함 가능)
|
|
74
74
|
* @returns 유효한 사업자등록번호이면 true, 아니면 false
|
|
75
|
-
* @example
|
|
76
|
-
* validateCorporateRegiNumber('123-45-67890') // 유효성 검사 후 결과 반환
|
|
77
|
-
* validateCorporateRegiNumber('1234567890') // 유효성 검사 후 결과 반환
|
|
78
75
|
*/
|
|
79
76
|
declare function validateCorporateRegiNumber(number: string): boolean;
|
|
80
77
|
/**
|