UNPKG

yaml-unist-parser

Version:

A YAML parser that produces output compatible with unist

9 lines (8 loc) 206 B
import { createNode } from "./node.js"; export function createRoot(position, children, comments) { return { ...createNode("root", position), children, comments, }; }