(self: string): stringStrips a leading | margin prefix from every line.
Example (Stripping pipe margins)
import { String } from "effect"
const text = " |hello\n |world"
const result = String.stripMargin(text)
console.log(result) // "hello\nworld"transforming
Source effect/String.ts:10491 lines
export const const stripMargin: (
self: string
) => string
Strips a leading | margin prefix from every line.
Example (Stripping pipe margins)
import { String } from "effect"
const text = " |hello\n |world"
const result = String.stripMargin(text)
console.log(result) // "hello\nworld"
stripMargin = (self: stringself: string): string => const stripMarginWith: (self: string, marginChar: string) => string (+1 overload)stripMarginWith(self: stringself, "|")