@nodedaemon/core
Version:
Production-ready Node.js process manager with zero external dependencies
14 lines • 1.01 kB
TypeScript
export declare function generateId(): string;
export declare function ensureDir(dirPath: string): void;
export declare function ensureFileDir(filePath: string): void;
export declare function isFile(path: string): boolean;
export declare function isDirectory(path: string): boolean;
export declare function parseMemoryString(memory: string): number;
export declare function formatMemory(bytes: number): string;
export declare function formatUptime(ms: number): string;
export declare function calculateExponentialBackoff(restartCount: number, baseDelay: number, maxDelay: number): number;
export declare function debounce<T extends (...args: any[]) => any>(func: T, wait: number): (...args: Parameters<T>) => void;
export declare function throttle<T extends (...args: any[]) => any>(func: T, limit: number): (...args: Parameters<T>) => void;
export declare function sanitizeProcessName(name: string): string;
export declare function validateProcessConfig(config: any): void;
//# sourceMappingURL=helpers.d.ts.map