expression, adverb
Used at the beginning of a sentence or clause to express relief that something turned out well. Slightly formal, common in both speech and writing.
幸いにして、大きな事故にはならなかった。
Fortunately, it didn't turn into a major accident.
幸いにして、試験に合格した。
Luckily, I passed the exam.