Numerar líneas
lines-numberNumera cada línea, alineando a la derecha. Cuándo: hay que transformar, comparar o medir un texto con exactitud y no por aproximación. No para: ordenar líneas con intercalación por idioma (lines-sort). Efectos secundarios: ninguno (solo lectura, sin red, sin estado guardado). Determinista: la misma entrada da la misma salida. Límites: entrada JSON de hasta 64 KB, 1 s por llamada, resultado de hasta 1 MB.
EN: Prefixes each line with its line number, right-aligned, starting at a given number and with a chosen separator. When: text has to be transformed, compared or measured exactly instead of approximated. Not for: sorting lines with locale-aware collation (lines-sort). Side effects: none (read-only, no network access, no stored state). Deterministic: the same input gives the same output. Limits: JSON input up to 64 KB, 1 s per call, result up to 1 MB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text with one item per line (string; required). | |
| start | No | First number (integer; optional; default 1; min -1000000000; max 1000000000). | |
| separator | No | Separator after number (string; optional; default ": "; up to 8 chars). | : |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No |