UNPKG

pretty-print-json

Version:

Pretty-print JSON data into HTML to indent and colorize (written in TypeScript)

14 lines (12 loc) 445 B
//! pretty-print-json v1.0.0 ~ github.com/center-key/pretty-print-json ~ MIT License export declare type FormatOptions = { indent?: number; linkUrls?: boolean; quoteKeys?: boolean; }; export declare type JsonType = 'key' | 'string' | 'number' | 'boolean' | 'null' | 'mark'; declare const prettyPrintJson: { version: string; toHtml(thing: unknown, options?: FormatOptions | undefined): string; }; export { prettyPrintJson };