The following example shows how you can parse .yaml files in Node.js using the js-yaml module.

YAML is a human friendly data serialization standard. Basically, YAML is to JSON, as Markdown is to HTML. It removes the need for double-quotes and excessive curly brackets.

For more information on YAML, see http://www.yaml.org/. For an excellent online YAML-to-JSON converter, see http://nodeca.github.com/js-yaml/ or http://yaml-online-parser.appspot.com/.

Continue reading