We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4873e13 commit 93fa849Copy full SHA for 93fa849
packages/core/src/index.ts
@@ -17,4 +17,14 @@ export function validateInput(input: string): boolean {
17
return input.trim().length > 0;
18
}
19
20
+/**
21
+ * Format a message with timestamp for logging
22
+ * @param message - The message to format
23
+ * @returns Formatted message with timestamp
24
+ */
25
+export function formatMessage(message: string): string {
26
+ const timestamp = new Date().toISOString();
27
+ return `[${timestamp}] ${message}`;
28
+}
29
+
30
export * from './types';
0 commit comments