@jiminp/tooltool
    Preparing search index...

    Function trimIndented

    • Trims whitespace from start/end and removes all leading indentation from each line.

      Parameters

      • text: string

        The text to trim.

      Returns string

      The trimmed and de-indented text.

      trimIndented(`
      Hello,
      world!
      `); // "Hello,\nworld!"