blessed-components - v1.20.0
    Preparing search index...

    Function renderKeyValue

    • Renders aligned key/value metadata as plain terminal text.

      This function is framework-independent. Import it from blessed-components/key-value to keep Blessed outside the module graph.

      Parameters

      Returns string

      Plain text without ANSI sequences or Blessed tags.

      RangeError Thrown for empty or multiline keys, non-finite numeric values, an invalid numeric key width, or an invalid gap.

      import { renderKeyValue } from 'blessed-components/key-value';

      renderKeyValue({
      items: [
      { key: 'Status', value: 'Online' },
      { key: 'CPU', value: '42%' },
      ],
      });
      // "Status : Online\nCPU : 42%"