@smartimpact-it/json-merge-shopify
Version:
The library handles merging JSON objects and arrays.
13 lines (12 loc) • 360 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 formatJson: (source: string, options?: FormatterOptions) => string;
export default formatJson;