Package: effect
Module: 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"
Signature
declare const stripMargin: (self: string) => string
Since v2.0.0