I am trying to read parameters from a YAML file into Javascript. Is there any good library to do this?
I’ve tried these libraries: https://github.com/nodeca/js-yaml and http://code.google.com/p/javascript-yaml-parser/
but both libraries only have functions that parse YAML when it is given as a string, instead of parsing straight out of a .yml or .yaml file. Are there any parsers that read YAML from a file and convert them to JS objects?
js-yaml does. I found this by Googling “node js yaml” because reading from files in JavaScript is done server side with node.js (or something like it), not from a browser.
The README for js-yaml begins
That is pretty strong evidence that it does process YAML directly from files.