MCPcopy Index your code
hub / github.com/node-modules/utility / JSONStringifyOptions

Interface JSONStringifyOptions

src/json.ts:17–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15}
16
17export interface JSONStringifyOptions {
18 /**
19 * A string or number that's used to insert white space (including indentation, line break characters, etc.)
20 * into the output JSON string for readability purposes.
21 * @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#space
22 */
23 space?: number | string;
24 replacer?: (this: any, key: string, value: any) => any;
25}
26
27export function writeJSONSync(filepath: string, content: string | object, options: JSONStringifyOptions = {}) {
28 options.space = options.space ?? 2;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…