expand
Convert tab characters to spaces in files or stdin with configurable tab stops. Returns JSON by default; use --raw for plain output.
Instructions
Convert tab characters to spaces in files or stdin. Read-only, no side effects (does not modify files). Returns JSON with the converted text by default; use --raw for plain output. Use configurable tab stops to control spacing. Use to normalize indentation to spaces. Not for converting spaces to tabs — use 'unexpand' for the reverse operation. See also 'unexpand'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| encoding | No | Text encoding. | utf-8 |
| max_lines | No | Maximum JSON lines to emit. | |
| paths | No | Files to read, or '-' for stdin. Defaults to stdin. | |
| raw | No | Write expanded text without a JSON envelope. | |
| tabs | No | Tab stop width. |