dominictarr / rc

The non-configurable configuration loader for lazy people.
Other
1.02k stars 97 forks source link

Feature: parse YAML #56

Closed dbkaplun closed 9 years ago

dbkaplun commented 9 years ago

Would be great if rc could parse YAML. YAML is a very common configuration language that is easier to read than JSON and more intuitive than INI. YAML is also a superset of JSON, so this feature would obviate the need for a special JSON parser. :pizza:

dominictarr commented 9 years ago

I'm not gonna add any more parsers to rc, but you may pass in your own parser. https://github.com/dominictarr/rc#pass-in-your-own-parser

i recommend using https://npm.im/yamlish because it provides the same values as json. yaml is complicated by supporting things like cycles. this is actually a feature in json. because it causes you to keep it simple and makes implementing json easier.

MoOx commented 9 years ago

Maybe adding a reference to rc-yaml in the README would be enough (rc-yaml module just add yaml for rc).

dominictarr commented 9 years ago

sure I'm happy to merge readme links to related projects.