UNPKG

json-stringify-pretty-compact

Version:

The best of both `JSON.stringify(obj)` and `JSON.stringify(obj, null, indent)`.

13 lines (12 loc) 301 B
declare module "json-stringify-pretty-compact" { export default function stringify( value: any, options?: { indent?: number | string; maxLength?: number; replacer?: | ((this: any, key: string, value: any) => any) | (number | string)[]; } ): string; }