Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
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.4.5/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