Search code examples
javascripthtmlparsingyaml

JavaScript YAML Parser


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?


Solution

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