SPeCS Packages Documentation
    Preparing search index...

    Helps inserting lines.

    Index
    newLine: string = "\n"
    • 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.