(title, value)
| 55 | } |
| 56 | |
| 57 | function renderObject(title, value) { |
| 58 | const lines = []; |
| 59 | lines.push(title); |
| 60 | lines.push('='.repeat(40)); |
| 61 | for (const [key, item] of Object.entries(value)) { |
| 62 | if (item && typeof item === 'object') lines.push(`${key}: ${JSON.stringify(item)}`); |
| 63 | else lines.push(`${key}: ${item}`); |
| 64 | } |
| 65 | return `${lines.join('\n')}\n`; |
| 66 | } |
| 67 | |
| 68 | async function main() { |
| 69 | const args = parseArgs(process.argv); |