A yaml parser which converts yaml to ast.
npm install node-yaml-parser* trying to correct errors during parsing, eg the yaml foo:bar will be fixed as foo: bar
* including comment/tag/colon/block start indicator/document start&end
foo:
key1: [1, 2]
key2: "test"
key3:
- a
- b
[foo] :
[key1] :
[-] :
[SCALAR] 1
[SCALAR] 2
[key2] :
[SCALAR] "test"
[key3] :
[-] :
[SCALAR] a
[SCALAR] b
https://babeljs.io/ if you have any difficulties about babel. Use npm run build to convert them into old javascript style which may be more friendly to old node.js versions.