Skip to content

Commit 88081f6

Browse files
author
Umutcan ÖNER
committed
feat: add utility functions to core package
1 parent 13aaef9 commit 88081f6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/core/src/utils.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/**
2+
* Utility functions for the core package
3+
*/
4+
5+
export function formatDate(date: Date): string {
6+
return date.toISOString().split('T')[0];
7+
}
8+
9+
export function generateId(): string {
10+
return Math.random().toString(36).substring(2, 15);
11+
}

0 commit comments

Comments
 (0)