# config.parseWorkspaceYaml

- **Module:** config
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/workspace/src/config.ts#L87
- **Page:** https://libtmux.org/reference/ts/config-parseworkspaceyaml/

```
config.parseWorkspaceYaml(source: : string) -> Workspace
```

Parse a YAML or JSON workspace, then validate it.

YAML parsing is Bun's, and this package otherwise runs anywhere — so this is
the one function that does not. Reached from Node it says so, rather than
failing on an undefined global; parse the document yourself and hand the
result to {@link parseWorkspace}.
