{
  "slug": "js-minify",
  "name": "gizza-ai/js-minify",
  "version": "0.1.0",
  "title": "JavaScript Minifier — shrink & compress JS online — gizza.ai",
  "description": "Minify JavaScript online: strip whitespace, line breaks and comments without changing behavior — strings and regex kept verbatim. Free, in-browser, no upload.",
  "tags": [
    "javascript minifier",
    "js minifier",
    "minify javascript",
    "compress javascript",
    "js compressor",
    "shrink javascript"
  ],
  "category": "developer",
  "urls": {
    "page": "https://gizza.ai/tools/js-minify/",
    "markdown": "https://gizza.ai/tools/js-minify/index.md",
    "descriptor": "https://gizza.ai/tools/js-minify/tool.json",
    "deep_link_example": "https://gizza.ai/tools/js-minify/?code=function%20f%28%29%20%7B%0A%20%20return%20a%20%3F%201%20%3A%202%3B%0A%7D&remove_comments=true&keep_license=true"
  },
  "cli": "gizza tool js-minify \"function f() {\n  return a ? 1 : 2;\n}\"",
  "tool": {
    "description": "Minify JavaScript: remove unnecessary whitespace, line breaks and comments to shrink the source, while preserving behavior. Token-aware: strings, template literals and regular expressions are kept verbatim, identifiers are never renamed, and code is never reordered or dropped. Newlines that matter for ASI (e.g. after return) are preserved. remove_comments (default true) strips comments; keep_license (default true) preserves /*! … */ / @license / @preserve banners.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "description": "The JavaScript source to minify.",
          "type": "string"
        },
        "keep_license": {
          "default": true,
          "description": "When removing comments, still preserve license/banner comments (/*! … */, @license, @preserve). Default true.",
          "type": "boolean"
        },
        "remove_comments": {
          "default": true,
          "description": "Strip line and block comments. Default true.",
          "type": "boolean"
        }
      },
      "required": [
        "code"
      ],
      "type": "object"
    }
  }
}