mourner / yeahml

A tiny subset of YAML for JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yeahml

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 elements

  • Key-value pairs (maps)
  • Lists (sequences)
  • Plain string values
  • Single-quoted string values
  • Double-quoted string values
  • Multi-line string literals
  • Comments

No intention to support

  • Flow styles ({foo: bar, ...})
  • Anchors and aliases (&ref)
  • Explicit tags (!!int)
  • Implicit typing (e.g. yes to true, timestamps)
  • Complex keys (? foo : bar)
  • Block headers (|+)
  • Folded scalars (>)
  • Directives (%YAML 1.2)
  • Non-UTF-8 encodings

About

A tiny subset of YAML for JavaScript


Languages

Language:JavaScript 100.0%