UNPKG

@inlang/paraglide-js

Version:

[![NPM Downloads](https://img.shields.io/npm/dw/%40inlang%2Fparaglide-js?logo=npm&logoColor=red&label=npm%20downloads)](https://www.npmjs.com/package/@inlang/paraglide-js) [![GitHub Issues](https://img.shields.io/github/issues-closed/opral/paraglide-js?lo

11 lines 537 B
/** * Detects the formatting of a JSON file and returns a function * that can be used to stringify JSON with the same formatting. * * @example * const file = await fs.readFile("./messages.json", { encoding: "utf-8" }) * const stringify = detectJsonFormatting(file) * const newFile = stringify(json) */ export declare const detectJsonFormatting: (file: string) => ((value: Parameters<typeof JSON.stringify>[0], replacer?: Parameters<typeof JSON.stringify>[1]) => string); //# sourceMappingURL=detect-json-formatting.d.ts.map