@neodx/log
Version:
A lightweight universal logging framework
23 lines (19 loc) • 700 B
TypeScript
export {
A as AutoLoggerInput,
L as LogArguments,
c as createLoggerAutoFactory,
r as readArguments
} from '../_internal/read-arguments-Hk1LfC26.js';
/**
* Tiny implementation of printf function.
* Supports only "%s" (string) and "%d" (number).
* @see https://github.com/floatdrop/pff
* @example printf('%s in %ds.', ['Done', 12]) => "Done on 12s."
*/
declare function printf(template: string, replaces: unknown[]): string;
/**
* Safe version of JSON.stringify, prevents circular refs
* @example serializeJSON({ record: { value: 1, name: 'age' }, valid: false })
*/
declare const serializeJSON: (value: unknown, space?: string | number) => string;
export { printf, serializeJSON };