Module

x/yaml/src/stringify/stringifyComment.ts>stringifyComment

YAML parser and stringifier for JavaScript
Go to Latest
variable stringifyComment
import { stringifyComment } from "https://dotland.deno.dev/x/yaml@v2.4.2/src/stringify/stringifyComment.ts";

Stringifies a comment.

Empty comment lines are left empty, lines consisting of a single space are replaced by #, and all other lines are prefixed with a #.

type

(str: string) => unknown