UNPKG

@jantimon/glob-watch

Version:

High-performance file watcher with multiple backend options

8 lines (7 loc) 160 B
export const logError = (msg: string, error?: unknown): void => { if (error) { console.error(`${msg}:`, error); } else { console.error(msg); } };