{
  "slug": "js-css-minifier",
  "name": "gizza-ai/js-css-minifier",
  "version": "0.1.0",
  "title": "JS & CSS Minifier — compress JavaScript or CSS online — gizza.ai",
  "description": "Minify JavaScript or CSS and see byte savings. Auto-detects language, strips comments and whitespace, keeps license banners, runs locally.",
  "tags": [
    "js minifier",
    "css minifier",
    "javascript minifier",
    "minify css",
    "compress javascript",
    "compress css",
    "code minifier",
    "minify online"
  ],
  "category": "developer",
  "urls": {
    "page": "https://gizza.ai/tools/js-css-minifier/",
    "markdown": "https://gizza.ai/tools/js-css-minifier/index.md",
    "descriptor": "https://gizza.ai/tools/js-css-minifier/tool.json",
    "deep_link_example": "https://gizza.ai/tools/js-css-minifier/?code=.card%20%7B%0A%20%20margin%3A%200%20auto%3B%0A%20%20color%3A%20%23ff0000%3B%0A%7D&language=auto&remove_comments=true&report=true"
  },
  "cli": "gizza tool js-css-minifier \".card {\n  margin: 0 auto;\n  color: #ff0000;\n}\"",
  "tool": {
    "description": "Minify JavaScript or CSS and report the before/after byte sizes. Removes unnecessary whitespace, line breaks and comments to shrink the source without changing behavior. The JavaScript path is token-aware (strings, template literals and regular expressions kept verbatim, identifiers never renamed, ASI-preserving); the CSS path is structural-only (whitespace + comments + redundant separators) and protects strings, url(...) and calc()/parenthesized expressions, so the output is guaranteed equivalent. language (default 'auto') detects CSS vs JS from the source, or force it with 'css'/'js'. remove_comments (default true) strips comments but always keeps /*! … */ / @license / @preserve banners. report (default true) prepends a one-line size-report comment. Runs locally.",
    "parameters": {
      "additionalProperties": false,
      "properties": {
        "code": {
          "description": "The JavaScript or CSS source to minify.",
          "type": "string"
        },
        "language": {
          "default": "auto",
          "description": "Which language to minify as. 'auto' (default) detects CSS vs JavaScript from the source; set 'css' or 'js' to force it.",
          "enum": [
            "auto",
            "css",
            "js"
          ],
          "type": "string"
        },
        "remove_comments": {
          "default": true,
          "description": "Strip comments. License/banner comments (/*! … */, @license, @preserve) are always kept. Default true.",
          "type": "boolean"
        },
        "report": {
          "default": true,
          "description": "Prepend a one-line size-report comment (original vs minified bytes and percent smaller). Default true.",
          "type": "boolean"
        }
      },
      "required": [
        "code"
      ],
      "type": "object"
    }
  }
}