You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.
I tried to parse this document. Its a valid yaml file, I now use the libyaml bindings for this but it would be cool if this js parser would work as well.
> node -e "console.log(require('yaml').eval(require('fs').readFileSync('./config.yaml.sample').toString()))"
/home/apoc/projects/js/anpaste/node_modules/yaml/lib/yaml.js:179
throw new Error(msg + ', ' + context(this.peek()[1].input))
^
Error: document not properly dedented, near "\nserver:\n domain: localh"
at Parser.expect (/home/apoc/projects/js/anpaste/node_modules/yaml/lib/yaml.js:179:9)
at Parser.parseDoc (/home/apoc/projects/js/anpaste/node_modules/yaml/lib/yaml.js:266:8)
at Parser.parse (/home/apoc/projects/js/anpaste/node_modules/yaml/lib/yaml.js:232:19)
at Object.exports.eval (/home/apoc/projects/js/anpaste/node_modules/yaml/lib/yaml.js:384:46)
at [eval]:1:29
at Object.<anonymous> ([eval]-wrapper:6:22)
at Module._compile (module.js:456:26)
at evalScript (node.js:532:25)
at startup (node.js:80:7)
at node.js:901:3
The text was updated successfully, but these errors were encountered:
I tried to parse this document. Its a valid yaml file, I now use the libyaml bindings for this but it would be cool if this js parser would work as well.
The text was updated successfully, but these errors were encountered: