(dataStr: string, filename?: string)
| 71 | } |
| 72 | |
| 73 | export const writeOutput = async (dataStr: string, filename?: string): Promise<void> => { |
| 74 | if (filename) { |
| 75 | await writeFile(filename, dataStr) |
| 76 | } else { |
| 77 | process.stdout.write(dataStr) |
| 78 | if (!dataStr.endsWith('\n')) { |
| 79 | process.stdout.write('\n') |
| 80 | } |
| 81 | } |
| 82 | } |
no outgoing calls
no test coverage detected