View YAML-Parser-Comparison.md

YAML Parser Comparison

Compare parsing of complex YAML files with several JavaScript based YAML parsers.

View binarize.sh
#! /usr/bin/env bash
rescale=false
adaptiveThreshold=false
srcdir="$1"
destdir="$2"
appendix=""
if [[ "$srcdir" == "$destdir" ]]
View error.txt
$ npm test
> ava-test@1.0.0 test /Users/adrian/Projects/ava-test
> ava
/Users/adrian/Projects/ava-test/index.js:1
(function (exports, require, module, __filename, __dirname) { import module from 'module'
^^^^^^
SyntaxError: Unexpected token import
View pretty-print-json.md

Pretty Print JSON

node -e "process.stdin.pipe(new require('stream').Writable({write: chunk => {console.log(require('util').inspect(JSON.parse(chunk), {depth: null, colors: true}))}}))" < file.json
View README.md
View index.js
JSON
.stringify(style)
.replace(/"/g, '')
.replace(/,/g, ';')
.replace(/^\{(.*)\}$/g, '$1')