UNPKG

yaml-unist-parser

Version:

A YAML parser that produces output compatible with unist

11 lines (10 loc) 310 B
import { createCommentAttachable } from "./comment-attachable.js"; import { createNode } from "./node.js"; export function createAlias(position, content, value) { return { ...createNode("alias", position), ...createCommentAttachable(), ...content, value, }; }