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

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

YAML parser and stringifier for JavaScript
Latest
variable stringifyComment
import { stringifyComment } from "https://deno.land/x/yaml@v2.6.0/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