Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/aether/deps.ts>YAML.Document#createAlias

A Deno library to interface with the Discord API
Latest
method YAML.Document.prototype.createAlias
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.

Parameters

optional
name: string