JavaScript YAML Parser

Tom picture Tom · Dec 2, 2010 · Viewed 41.8k times · Source

I am looking for a JavaScript YAML parser which converts the YAML into something usable within a HTML page. I've tried this version on Github (https://github.com/visionmedia/js-yaml) but it looks like it only works with node.js

Which libraries should I be using and is there any sample code to show example usage?

Answer

Vitaly picture Vitaly · Nov 9, 2011

JS-YAML parser works in browser. Here is online demo http://nodeca.github.com/js-yaml/ . Though, it's primary goal is node.js, and browser version was done just for fun :)