(indent: number)
| 49 | export type OutputFormatter<T extends object> = (data: T) => string |
| 50 | |
| 51 | export const jsonFormatter = <T extends object>(indent: number): OutputFormatter<T> => |
| 52 | (data: T) => JSON.stringify(data, null, indent) |
| 53 | |
| 54 | export const yamlFormatter = <T extends object>(indent: number): OutputFormatter<T> => |
| 55 | (data: T) => yaml.dump(data, { indent }) |
no outgoing calls
no test coverage detected