| 15 | } |
| 16 | |
| 17 | export 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 | |
| 27 | export function writeJSONSync(filepath: string, content: string | object, options: JSONStringifyOptions = {}) { |
| 28 | options.space = options.space ?? 2; |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…