Helps inserting lines.

Constructors

Properties

Methods

Constructors

Properties

newLine: string = "\n"

Methods

  • Parameters

    • contents: string | File

      The contents where lines will be inserted.

    • linesToInsert: Record<number, string | string[]>

      Maps line numbers to strings to insert.

    Returns string

    the contents with the lines inserted.