@smartimpact-it/json-merge-shopify
Version:
The library handles merging JSON objects and arrays.
12 lines (11 loc) • 332 B
TypeScript
export interface FormatterOptions {
doubleEscape?: boolean;
fixEmptyObjects?: boolean;
fixEmptyArrays?: boolean;
addNewLineAtEndOfFile?: boolean;
tabSize?: number;
}
/**
* Format JSONs similarly to how Shopify does it.
*/
export declare const formatter: (source: string, options?: FormatterOptions) => string;