(text: string)
| 259 | export const layer = (formatter: Formatter): Layer.Layer<never> => Layer.succeed(Formatter)(formatter) |
| 260 | |
| 261 | const escapeControlCharacters = (text: string): string => |
| 262 | // oxlint-disable-next-line no-control-regex |
| 263 | text.replace(/[\u0000-\u0008\u000B\u000C\u000E-\u001F\u007F]/g, (character) => |
| 264 | `\\x${character.charCodeAt(0).toString(16).padStart(2, "0")}`) |
| 265 | |
| 266 | /** |
| 267 | * Creates a default formatter with configurable options. |
no test coverage detected