import { YAML } from "https://deno.land/x/aether@v0.0.3/deps.ts";
const { Document } = YAML;
Create a new Alias
node, ensuring that the target node
has the required anchor.
If node
already has an anchor, name
is ignored.
Otherwise, the node.anchor
value will be set to name
,
or if an anchor with that name is already present in the document,
name
will be used as a prefix for a new unique anchor.
If name
is undefined, the generated anchor will use 'a' as a prefix.