A JavaScript parser for a tiny subset of YAML — a minimal amount necessary to be useful for static site generators and simple configuration, while being small, strict and unambiguous. Inspired by StrictYAML. Experimental and a work in progress.
- Key-value pairs (maps)
- Lists (sequences)
- Plain string values
- Single-quoted string values
- Double-quoted string values
- Multi-line string literals
- Comments
- Flow styles (
{foo: bar, ...}
) - Anchors and aliases (
&ref
) - Explicit tags (
!!int
) - Implicit typing (e.g.
yes
totrue
, timestamps) - Complex keys (
? foo : bar
) - Block headers (
|+
) - Folded scalars (
>
) - Directives (
%YAML 1.2
) - Non-UTF-8 encodings