monex
Version:
Execute one or multiple scripts, interactively or in daemon mode, and restart them whenever they crash or a watched file changes.
14 lines (13 loc) • 467 B
TypeScript
import type { Stat } from '../types';
declare const Formatter: {
formatters: {
toPercentage: (value: number | string) => string;
toSize: (bytes: number | string) => string;
toStatus: (isOK: boolean) => string;
toTime: (ms: number | string) => string;
};
formatJSON: (stats: Stat[]) => string;
formatTable: (stats: Stat[]) => string;
format: (stats: Stat[], pretty?: boolean) => string;
};
export default Formatter;