#!/usr/bin/env node / Webhook Tester - HTTP endpoint testing tool Inspired by OpenClaw webhook automation / import { execSync } from 'child process'; import fs from 'fs'; import path from 'path'; // Colors const colors = { reset: '\x1b[0m', red: '\x1b[31m', green: '\x1b[32m', yellow: '\x1b[33m', blue: '\x1b[34m', cyan: '\x1b[36m', bold: '\x1b[1m' }; function parseArgs(args) { const config = { url: '', method: 'GET', headers: {}, data: null, file: null, repeat: 1, followRedirects: false, verbose: false, showHeaders: false, showBody: false, timeout: 30 }; let i = 0; while (i < args.length) { co…