Metadata-Version: 2.4
Name: minify_all
Version: 0.1.11
Summary: Aggressive multi-language single-line flattening minifier
Requires-Python: >=3.8
Description-Content-Type: text/markdown

# minify_all

An aggressive, multi-language single-line flattening minifier designed to compress your source code into ultra-tight single lines. Perfect for reducing token usage when passing code context into AI models or LLMs.

## Installation

```bash
pip install minify_all
```

## Features

- **Multi-Language Support**: Works out-of-the-box for JavaScript, HTML, CSS, JSON, Java, C#, and C++.
- **Hyper-Minification**: Forces entire source files onto one single line.
- **Smart JS Handling**: Automatically injects missing semicolons before flattening so your code doesn't break.

## Usage

```python
from minify_all import js_minify, file_minify

# Minify a raw string
ugly_js = "function test() {\n  console.log('hi')\n}"
print(js_minify(ugly_js))
# Output: function test(){console.log('hi');}

# Minify a physical file directly
file_minify("app.js", output_path="app.min.js")
```
