A YAML parser that produces output compatible with unist
npm install yaml-unist-parser

A YAML parser that produces output compatible with unist
- better node positioning
- better comment attaching
- unist-compatible AST
``shusing npm
npm install --save yaml-unist-parser
Usage
`ts
import { parse } from "yaml-unist-parser";const ast = parse(
);
`Options
$3
type
boolean\
default: trueWhether key uniqueness is checked.
`js
parse("a: 1\na: 2");
// Uncaught SyntaxError [YAMLSyntaxError]: Map keys must be uniqueparse("a: 1\na: 2", { uniqueKeys: false });
// {type: 'root',...}
`Development
`sh
lint
yarn run lintbuild
yarn run buildtest
yarn run test
``MIT © Ika