jsonfm
Version:
JSON format for good presentation
21 lines (20 loc) • 438 B
TypeScript
interface jsonfConfig {
type?: 'space' | "tab" | string;
tab?: {
char: '\t';
size: 1;
};
space?: {
char: ' ';
size: 4;
};
[key: string]: {
char: string;
size: number;
} | string | undefined;
}
declare const _default: (json: Array<any> | Object | string, config?: jsonfConfig) => string;
export = _default;
declare module 'jsonfm' {
export { jsonfConfig };
}