Repl.box() method
Repl.box() method
Section titled “Repl.box() method”Wraps a string (or multi-line string) in an ASCII box.
Signature:
box(content: string, padding?: number): string;Parameters
Section titled “Parameters”|
Parameter |
Type |
Description |
|---|---|---|
|
content |
string |
The text to wrap (supports newlines). |
|
padding |
number |
(Optional) Optional horizontal padding (default 1). |
Returns:
string