Skip to main content
Module

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

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