from yml for formats

Parse text as .yaml/.yml and create table.

Signature

> from yml

Input/output types:

inputoutput
stringany

Examples

Converts yaml formatted string to table

> 'a: 1' | from yaml
╭───┬───╮
│ a │ 1 │
╰───┴───╯

Converts yaml formatted string to table

> '[ a: 1, b: [1, 2] ]' | from yaml
╭───┬────┬───────────╮
│ # │ a  │     b     │
├───┼────┼───────────┤
│ 01 │    ❎     │
│ 1 │ ❎ │ ╭───┬───╮ │
│   │    │ │ 01 │ │
│   │    │ │ 12 │ │
│   │    │ ╰───┴───╯ │
╰───┴────┴───────────╯