Skip to content

@pumpkin-plugins/config API / render / commentLines

Function: commentLines() ​

commentLines(text, width?): string[]

Defined in: tools/config/src/render.ts:23

Wraps text into # comment lines.

Parameters ​

text ​

string

Plain text. Words are never split.

width? ​

number = COMMENT_WIDTH

Longest line to produce, including the # .

Returns ​

string[]

One string per line.

Pumpkin Plugins documentation