| 1 | export interface EscapeOptions { |
| 2 | /** |
| 3 | * The delimiter that will be used to wrap the string (and so must be escaped |
| 4 | * when used within the string). |
| 5 | * Defaults to " |
| 6 | */ |
| 7 | delimiter?: string; |
| 8 | |
| 9 | /** |
| 10 | * The char to use to escape the delimiter and other special characters. |
| 11 | * Defaults to \ |
| 12 | */ |
| 13 | escapeChar?: string; |
| 14 | |
| 15 | /** |
| 16 | * Whether newlines (\n and \r) should be escaped within the string. |
| 17 | * Defaults to true. |
| 18 | */ |
| 19 | escapeNewlines?: boolean; |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * Escape characters within a value to make it safe to insert directly into a |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…