{"ok":true,"tool":"JavaScript Minifier","operation":"minify-js","description":"Minify JavaScript by removing comments and whitespace while preserving keyword spacing.","method":"POST","endpoint":"/api/js-minifier","webUrl":"https://toolhub-5eo.pages.dev/tools/js-minifier","parameters":{"type":"object","properties":{"code":{"type":"string","description":"The JavaScript to minify"}},"required":["code"]},"response":{"type":"object","properties":{"minified":{"type":"string"},"originalLength":{"type":"number"},"minifiedLength":{"type":"number"},"saved":{"type":"number"},"savedPercent":{"type":"number"}}},"example":{"request":{"code":"function add(a, b) {\n  return a + b;\n}"},"response_shape":{"type":"object","properties":{"minified":{"type":"string"},"originalLength":{"type":"number"},"minifiedLength":{"type":"number"},"saved":{"type":"number"},"savedPercent":{"type":"number"}}}},"howToCall":"POST a JSON body to https://toolhub-5eo.pages.dev/api/js-minifier. Returns {\"ok\":true,\"result\":{...}} on success or {\"ok\":false,\"error\":\"...\"} on failure. No auth, CORS-enabled.","parametersSummary":"  code (string, required) — The JavaScript to minify","curlExample":"curl -X POST https://toolhub-5eo.pages.dev/api/js-minifier -H \"Content-Type: application/json\" -d '{\"code\":\"function add(a, b) {\\n  return a + b;\\n}\"}'"}