intellibrix v1.0.0
    Preparing search index...

    Function createUnifiedDiff

    • A unified diff from before to after, with context lines around each change. The output applies with patch -p1 or apply_patch; a missing final newline is marked the usual way.

      Parameters

      • before: string
      • after: string
      • options: { afterName?: string; beforeName?: string; context?: number } = {}

      Returns UnifiedDiff