--- spec: openflange.org/pipe/v0.1 id: lowercase version: 0.1.0 title: Lowercase description: Lower-cases every string of a stream. license: Apache-2.0 keywords: [text, string, lowercase, normalize] maturity: experimental scope: record cardinality: one-to-one deterministic: true inputs: text: description: Strings, one JSON string per NDJSON line. schema: format: json-schema definition: {type: string} outputs: text: description: The same strings in lower case, in input order. schema: format: json-schema definition: {type: string} implementation: type: expression language: starlark expression: text.lower() --- # Lowercase Implements the [OpenFlange](https://openflange.org/) specification. Lower-cases every string it receives using Unicode case mapping (`"Ünïcödé"` becomes `"ünïcödé"`). One string in, one string out, in order: the pipe is one-to-one and deterministic, so hosts may also call it as a scalar function. ```sh printf '"Alice@Example.COM"\n' | openflange run ./pipes/lowercase # "alice@example.com" ``` Items are scalar values: one JSON string per NDJSON line. A non-string item fails the run with `E_RUNTIME`.