js-yaml
Simple plugin to allow to load YAML files with r42. YAML is a very good looking syntax for configuration files and the like.
Getting started
npm install r42-yaml
Then, to activate the loader:
;
The module will then be available with the yaml
prefix:
Use another prefix than yaml
The function exported by js-yaml returns the loader function and can be passed true to prevent automatic registration of the plugin.
var r42 = ;r42; // Now the loader will be accessible from yamlalias